Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Sorry, forgot put link When you can test there link: http://www.lambdaprobe.org/d/index.htm -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Hi, We had same symptoms with 5.5.25 using T4 during _development_. Our case was identified that the live class loading resulted in that error once the app got big enough. The live reloading is somewhat broken anyway in Tomcat, so we moved to Glassfish in our next project as the development server. The experience has been better with Glassfish, it takes longer to initially start, but feels faster once up live reloading works better - not so much need to restart all the time. Haven't had single issue in production (In production we use JBoss.). - 99 Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17816332.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Hi guys, I had some problems like this too, and i want to know from you, tapestry experts: Do you think that the wrong usage of @Persist annotation can cause problems like this? If we have more things to persist, we will have a bigger client session, combined with many clients all the time in a tiny server like that: BUM! what do you think? Thanks in advance! 2008/6/13 9902468 [EMAIL PROTECTED]: Hi, We had same symptoms with 5.5.25 using T4 during _development_. Our case was identified that the live class loading resulted in that error once the app got big enough. The live reloading is somewhat broken anyway in Tomcat, so we moved to Glassfish in our next project as the development server. The experience has been better with Glassfish, it takes longer to initially start, but feels faster once up live reloading works better - not so much need to restart all the time. Haven't had single issue in production (In production we use JBoss.). - 99 Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17816332.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
That is not the case! the jvm uses the PermGenSpace to store the classes meta-information (eg. needed for reflection). everytime Tapestry reloads and enhances a page a new class is generated and its meta-information gets stored in the PermGenSpace. Even if the same page class has been enhanced before because now its another class. Because the PermGenSpace does not get gc it will eventually, after many reloads, get a OutOfMemoryError. This is a problem that occured to me often when developing T4 applications with the tapestry.cache parameter set to false because then the page classes would get enhanced (and written to the PermGenSpace) on every request. I never experienced such a exception with T5 because it uses an own classloader that is discarded (and the associated data from the PermGenSpace) before the pages are reloaded and enhanced. Also it is not a problem exclusive to Tapestry. If you use Hibernate, Spring, AOP and other frameworks that make heavy use of runtime class manipulation... can produce such exceptions. (just google it) the first thing you can do is to increase the permGenSpace of your jvm: eg.: --XX:MaxPermSize=256m btw. even i you used persist annotations extensively Tapestry would have a relativley small memory session footprint compared to other Web frameworks as Tapestry itself does not need the session - at least keeps the usage to a bare minimum. this is a consequence of the static page/component tree dynamic behaviour concept of Tapestry. other Web frameworks need the session to persist the component tree between requests because they can be changed dynamically and need to be restored on the next request. g, kris Marcelo Lotif [EMAIL PROTECTED] 13.06.2008 14:03 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space Hi guys, I had some problems like this too, and i want to know from you, tapestry experts: Do you think that the wrong usage of @Persist annotation can cause problems like this? If we have more things to persist, we will have a bigger client session, combined with many clients all the time in a tiny server like that: BUM! what do you think? Thanks in advance! 2008/6/13 9902468 [EMAIL PROTECTED]: Hi, We had same symptoms with 5.5.25 using T4 during _development_. Our case was identified that the live class loading resulted in that error once the app got big enough. The live reloading is somewhat broken anyway in Tomcat, so we moved to Glassfish in our next project as the development server. The experience has been better with Glassfish, it takes longer to initially start, but feels faster once up live reloading works better - not so much need to restart all the time. Haven't had single issue in production (In production we use JBoss.). - 99 Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17816332.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Hi, @Persist annotation is bad for scalability and should be avoided where possible. Of course, this cannot be always done. If it is known that only couple of users uses the page (Admin console or something.) then you can persist larger objects to session. And you don't need to have that user object with addresses etc. hanging in the session for the most of the time... Use common sense where to optimize. Optimize only in areas where the reward is significant: Don't use your valuable time where it doesn't matter. Eventually server runs out of memory, no matter what you do if you are given infinite amount of users. If memory always runs out in production, (And the user count should be acceptable.) then there is programming error that prevents jvm from reclaiming the memory. See http://www.ibm.com/developerworks/library/j-leaks/index.html for more information. With T5 we haven't had single issue with this, but this can be due to many things as Kristian pointed out. -99 Marcelo Lotif-2 wrote: Hi guys, I had some problems like this too, and i want to know from you, tapestry experts: Do you think that the wrong usage of @Persist annotation can cause problems like this? If we have more things to persist, we will have a bigger client session, combined with many clients all the time in a tiny server like that: BUM! what do you think? Thanks in advance! 2008/6/13 9902468 [EMAIL PROTECTED]: Hi, We had same symptoms with 5.5.25 using T4 during _development_. Our case was identified that the live class loading resulted in that error once the app got big enough. The live reloading is somewhat broken anyway in Tomcat, so we moved to Glassfish in our next project as the development server. The experience has been better with Glassfish, it takes longer to initially start, but feels faster once up live reloading works better - not so much need to restart all the time. Haven't had single issue in production (In production we use JBoss.). - 99 Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17816332.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17824237.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
This is also a nice resource from Sun: http://java.sun.com/performance/reference/whitepapers/6_performance.html JAVIER SANCHEZ EDESA S.A. On Fri, Jun 13, 2008 at 9:06 AM, 9902468 [EMAIL PROTECTED] wrote: Hi, @Persist annotation is bad for scalability and should be avoided where possible. Of course, this cannot be always done. If it is known that only couple of users uses the page (Admin console or something.) then you can persist larger objects to session. And you don't need to have that user object with addresses etc. hanging in the session for the most of the time... Use common sense where to optimize. Optimize only in areas where the reward is significant: Don't use your valuable time where it doesn't matter. Eventually server runs out of memory, no matter what you do if you are given infinite amount of users. If memory always runs out in production, (And the user count should be acceptable.) then there is programming error that prevents jvm from reclaiming the memory. See http://www.ibm.com/developerworks/library/j-leaks/index.html for more information. With T5 we haven't had single issue with this, but this can be due to many things as Kristian pointed out. -99 Marcelo Lotif-2 wrote: Hi guys, I had some problems like this too, and i want to know from you, tapestry experts: Do you think that the wrong usage of @Persist annotation can cause problems like this? If we have more things to persist, we will have a bigger client session, combined with many clients all the time in a tiny server like that: BUM! what do you think? Thanks in advance! 2008/6/13 9902468 [EMAIL PROTECTED]: Hi, We had same symptoms with 5.5.25 using T4 during _development_. Our case was identified that the live class loading resulted in that error once the app got big enough. The live reloading is somewhat broken anyway in Tomcat, so we moved to Glassfish in our next project as the development server. The experience has been better with Glassfish, it takes longer to initially start, but feels faster once up live reloading works better - not so much need to restart all the time. Haven't had single issue in production (In production we use JBoss.). - 99 Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17816332.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-5.5.26-%2B-JDK-6_05---java.lang.OutOfMemoryError%3A-PermGen-Space-tp17804956p17824237.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
today at work I was looking for a mistake adnd Isaw that the memory was being full. The tables were making the memory full. I believe that I am having problems with the aplication. How do I erase the memory and have it full? I believe that its a persistence on the memory. I used the probe to find out that the persistence on memory was wrong. -- Regards, Estevam Henrique Portela Mota e Silva Handicapped Auditory = deaf [EMAIL PROTECTED] / [EMAIL PROTECTED] Programmer Java and Tapestry Brazil - Fortaleza / CE
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Hi, I think you'll have better luck getting an answer on the Tomcat users list. :) -Filip On 2008-06-12 19:06, Estevam Henrique Portela Mota e Silva wrote: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 + JDK 6_05 - java.lang.OutOfMemoryError: PermGen Space
Try to set some more memory for permgen space, eg. /-XX:MaxPermSize=128m/ in case of Sun's JVM. The correct value depends on the environment, you can use for example JConsole to diagnose the JVM. Regards: Norbi Estevam Henrique Portela Mota e Silva írta: Good Afternoon, Who knows the problem of tomcat on the server. Tomcat's war have 17 in my company Memory (Initial memory pool: 512mb and Maximum memory pool: 1024mb) Version: -- Tomcat 5.5.26 -- JDK 6_05 Server: -- Gigabyte, Core 2 Duo and Memory 2 gb (motherboard has maximum of memory is 2 gb) Added: -- Isapi Redirector 1.2.14 on another server (IIS 5.0 and Win 2000) Note: -- All programs are installed executable (EXE) When I clicked generate PDF (Jasper) in my project, was wrong ... See below pra [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen Space How resolved? No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1499 - Release Date: 6/12/2008 7:13 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]