On 22/07/10 21:53, James Carman wrote: > I'm running Tomcat, so it's: > > $ env | grep CATALINA > CATALINA_OPTS= -Xmx4096m -Xms2048m -XX:MaxPermSize=1024m > -XX:+UseParallelGC -server
Well, if you have increased memory for the permanent generation several times and keep seeing this error, for me this sounds like a memory leak. Tuning the java garbage collection will in all cases not help here, because java only throws an out of memory error if garbage collection does not help any more. I would enable the following for tomcat: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/java/whatever Then you can analyse what holds all the memory after the next crash. A nice tool for that is the Eclipse Memory Analyzer: http://www.eclipse.org/mat/ A little how to for getting started: http://wiki.eclipse.org/index.php/MemoryAnalyzer And you should search what they have at the tomcat pages and on their mailing list archives: http://wiki.apache.org/tomcat/OutOfMemory This is most likely not specific to wicket itself. Andreas > On Thu, Jul 22, 2010 at 3:47 PM, david_ <[email protected]> wrote: >> >> http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html >> >> <http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html>these >> are my settings >> set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=256m >> -XX:MaxPermSize=256m >> >> 2010/7/22 James Carman [via Apache Wicket] < >> [email protected]<ml-node%[email protected]> >>> >> >>> Of course. It's set at 1024m! I bumped it from 256 to 512 to 1024 >>> now. I'm still seeing the error. >>> >>> On Thu, Jul 22, 2010 at 3:31 PM, Martin Makundi >>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=2299232&i=0>> >>> wrote: >>> >>>> You did try to change your permgen setting? >>>> >>>> http://rimuhosting.com/knowledgebase/linux/java/-Xmx-settings >>>> >>>> ** >>>> Martin >>>> >>>> 2010/7/22 James Carman <[hidden >>>> email]<http://user/SendEmail.jtp?type=node&node=2299232&i=1>>: >>> >>>>> Oops! I must not have copied that line. All it said was "PermGen >>> space" >>>>> >>>>> On Thu, Jul 22, 2010 at 3:25 PM, Martin Makundi >>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=2299232&i=2>> >>> wrote: >>>>>> Where is the outofmemoryerror ? >>>>>> >>>>>> ** >>>>>> Martin >>>>>> >>>>>> 2010/7/22 James Carman <[hidden >>>>>> email]<http://user/SendEmail.jtp?type=node&node=2299232&i=3>>: >>> >>>>>>> I'm running Wicket 1.4.9 and Sun's JDK 1.6.0_20 on a RHEL4 64-bit >>> machine. >>>>>>> >>>>>>> >>>>>>> On Thu, Jul 22, 2010 at 2:30 PM, James Carman >>>>>>> <[hidden email]<http://user/SendEmail.jtp?type=node&node=2299232&i=4>> >>> wrote: >>>>>>>> Guys, our production server is running into an error from time to >>>>>>>> time. I get the below stack trace after the site has been running >>> for >>>>>>>> a while. It's not running in development mode. It's running in >>>>>>>> deployment mode. Any thoughts? What's with this >>>>>>>> generateSerializationConstructor() stuff? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
