Here is the exact fix implemented for this perm gen error.  I'm not sure
that's the error you're seeing but this is definitely the fix for it, it's
still in effect on an older machine I have.  Put this in catalina.sh before
the first use of the variable JAVA_OPTS:

JAVA_OPTS="-Xms256m -Xmx768m"

Mine was defined right before this structure and it worked fine:

# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar ]; then
  JAVA_OPTS="$JAVA_OPTS
"-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
"-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
fi

--j



jackalista wrote:
> 
> Hey there,
> 
> I don't have the details *too* handy, I think it's a bit of settings added
> to a script in tomcat.  Search the archives for "perm gen" (case
> insensitive) and I think you'll get full instructions.  If you can't find
> it, I may have the fix implemented on an older machine in my house.  I'm
> up to my a** in figuring out how to integrate mule and appfuse though so I
> don't want to go look for that unless necessary.  Go look in the archives,
> I think it's there, but if not, I'll dig it out (I'll check this thread). 
> Good luck...
> 
> -=j=-
> 
> 
> sudhakargupta wrote:
>> 
>>   Thanks for your reply, if there is a solution please specify the
>> solution links and provide me if you have any examples
>> 
>> 
>> jackalista wrote:
>>> 
>>> Hi,
>>> 
>>> I'm not sure but could this be that perm gen error?  I don't have the
>>> fix handy but I think if you search for "perm gen" (case insensitive)
>>> there is a solution in the archives here.
>>> 
>>> --j
>>> 
>>> 
>>> sudhakargupta wrote:
>>>> 
>>>> Hi Matt,
>>>>  
>>>>   Presently i'm working with appfuse 1.9 (struts) application, in my
>>>> application i need to generate the reports with customized queries
>>>> which is not related to the hibernate mapped classes. In some
>>>> situations the query returns 50,000 records or higher (return as a list
>>>> to use displaytag library to shown), at that moment it gives an error
>>>> like 
>>>> 
>>>>     java.lang.OutOfMemoryError: Java heap space
>>>>  
>>>>  i tried it out with JAVA_OPTS in my environmental variable -Xms128m
>>>> -Xmx1024m, but it is not given any difference.
>>>> 
>>>> please suggest me how to avoid the java heap space problem 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/heap-space-error-when-generating-reports.-tp25763835s2369p25795782.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to