Re: Tomcat Process Memory Leak?
Does anybody knows about a tool so that you can analyze and trace in detail the memory allocation of your application objects, classes etc? thank you Stefano - Original Message From: Bill Clarke-Fields [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, December 17, 2007 5:27:36 PM Subject: Re: Tomcat Process Memory Leak? Thank you both for your responses. I am also pretty convinced now that it is an application-related issue. Especially since the memory usage jumps ~30mb in a few seconds. My investigation continues. Travis Haagen wrote: Any ideas about what could be causing this? I realize it could be an application-related leak, but in that case wouldn't we see it running out of heap? Server-side application leaks are really hard to figure out, because they usually only happen in a high-traffic production environment and are difficult to produce on development machines. Basically, you should look at bug reports (e.g., bugzilla) for all of the 3rd party libraries that your application uses, or at least those libraries that have been added/upgraded since this problem started occuring. For each component, search for 'memory leak' and see where that gets you. Good luck, Travis - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-Process-Memory-Leak--tp14337929p14373437.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: stdout.log size is increasing
Hi Steve, thanks, OS is windows 2003. How can I archive stdout.log in a production environment without stopping tomcat? I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. Otherwise the log file size raises everyday ! How can I configure logrotate as you mentioned? is it applicable on windows as well? thank you Steve Ochani [EMAIL PROTECTED] wrote: On 10 Dec 2007 at 1:16, Stefano Martines wrote: Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? You didn't mention what OS you're using (or Tomcat version for that matter) but if you're using unix, try logrotate. I want somethink like this: stdout.log 12 MB stdout_1.log 50 MB stdout_2.log 50 MB stdout_3.log 50 MB thank you Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: stdout.log size is increasing
Hi Steve, thanks, OS is windows 2003. How can I archive stdout.log in a production environment without stopping tomcat? I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. Otherwise the log file size raises everyday ! How can I configure logrotate as you mentioned? is it applicable on windows as well? thank you Steve Ochani [EMAIL PROTECTED] wrote: On 10 Dec 2007 at 1:16, Stefano Martines wrote: Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? You didn't mention what OS you're using (or Tomcat version for that matter) but if you're using unix, try logrotate. I want somethink like this: stdout.log 12 MB stdout_1.log 50 MB stdout_2.log 50 MB stdout_3.log 50 MB thank you Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
stdout.log size is increasing
Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? I want somethink like this: stdout.log 12 MB stdout_1.log 50 MB stdout_2.log 50 MB stdout_3.log 50 MB thank you Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention
Hi Sean, I have exactly the same problem. Tomcat5.exe is increasing memory allocation day by day. you mentioned: The memory usage of tomcat has dropped ~40% since we made that change Would you kindly provide with a document or reference on how you did it step by step? How did you setup the load balancer for tomcat? thank you Stefano - Original Message From: Andrew Miehs [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 7, 2007 11:47:58 AM Subject: Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention On 06/12/2007, at 10:34 PM, Sean Carnes wrote: The highest that we could set the heap was to 1200. I tried higher and it would not start. It also seemed somewhat unstable above 1024 which was the previous setting, slowness updating the client and other things. The company that develops the enterprise s/w that uses tomcat said that settings over 1024 were unstable so my feeling was confirmed by them. We use an snmp agent to our nms to get system statistics. There was nothing out of the ordinary, other than tomcat using about 1298M which is the most that we have seen it use. We have everything up and running now and we are load balancing which is how it should have been set up in the first place. The memory usage of tomcat has dropped ~40% since we made that change. It was normally using between 600M 800M now its down to about 4-500M give or take. Hi Sean It seems as if it sort of works at the moment by the sounds of this... Things you can try when you are board and have time: - Does Windows JVM 1.42 have jstat ? - Try upgrading to JVM 1.5 - (linux if not available on windows) - run jstat every minute and you should be able to get a good look at users vs. memory to see if this is really the problem. And definitely - upgrade to the 64 bit JVM as soon as possible - RAM is cheap Andrew Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Tomcat5.exe increasing memory allocation
Hi, I am running Tomcat 5.0.28 in a production environment. It has the default settings you get from the initial installation. The Tomcat5.exe process allocates 250 MB memory right now and it is increasing from day to day. What is the reason? How can I stop the increase of memory allocation? I don’t want to restart tomcat each time. I have many concurrent users using the system. Thank Stefano Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
How to check my current JVM settings
Hi, I don’t how to check my JVM settings for my Tomcat. 1) How can I see the current JVM settings of my Tomcat application, (initial Heap size, max and min heap size) ? where are they stored? 2) How can I change these paramters? Thank Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: How to check my current JVM settings
Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe) Java 1.4.2x thank you - Original Message From: Peter Crowther [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 6, 2007 4:39:33 PM Subject: RE: How to check my current JVM settings Operating system? Tomcat version? Installed as service or running from batch file? Java version? -Original Message- From: Stefano Martines [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 15:21 To: users@tomcat.apache.org Subject: How to check my current JVM settings Hi, I don’t how to check my JVM settings for my Tomcat. 1) How can I see the current JVM settings of my Tomcat application, (initial Heap size, max and min heap size) ? where are they stored? 2) How can I change these paramters? Thank Stefano __ __ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention
How can I increase the heap size? I know abouth -Xms but I dont know where to put this paramter, which line etc.? - Original Message From: Peter Crowther [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 6, 2007 4:38:57 PM Subject: RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention From: Sean Carnes [mailto:[EMAIL PROTECTED] *We are having an issue with the tomcat service crashing version 4.1.31, sometimes with these memory errors and sometimes not. We have a backup but once the load moves to that server the backup crashes also almost immediately after the load balancer switches. This has happened multiple times to us over the past few days with no changes made to the server, just a slight increase in load. Looks like that slight increase in load has tipped you over from being just-about-alright to just-about-failing. If you can't increase heap space, can't decrease load and can't alter the application, your only remaining choice is to add capacity: install another server and load-balance across N+1 servers rather than N servers. Also remember that if you have plenty of spare RAM on the machines hosting Tomcat, and it's just maximum heap size that's the issue, then you might be able to run two Tomcat processes (on different ports) on the same server, avoiding the need to deploy new hardware. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: How to check my current JVM settings
Thanks, 1) but how can I see what is the current setting? 2) where should I set the CATALINA_OPTS , on catalina.50.bat ? 3) What is the syntax of defining JVM paramters? sorry for my basic questions thank you - Original Message From: Phi-Long LE [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 6, 2007 5:14:51 PM Subject: Re: How to check my current JVM settings use the CATALINA_OPTS variable to set your JVM parameters You can also define CATALINA_OPTS=-Xoptionsfile=toto.conf and within toto.conf explicit JVM parameter P. Le 06/12/2007 17:02, Stefano Martines a écrit : Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe) Java 1.4.2x thank you - Original Message From: Peter Crowther [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 6, 2007 4:39:33 PM Subject: RE: How to check my current JVM settings Operating system? Tomcat version? Installed as service or running from batch file? Java version? -Original Message- From: Stefano Martines [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 15:21 To: users@tomcat.apache.org Subject: How to check my current JVM settings Hi, I don’t how to check my JVM settings for my Tomcat. 1) How can I see the current JVM settings of my Tomcat application, (initial Heap size, max and min heap size) ? where are they stored? 2) How can I change these paramters? Thank Stefano __ __ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: How to check my current JVM settings
is tomcat 5.0.28 or 5.0.30 no more supported? Then we have to switch to tomcat 5.5, right? - Original Message From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 6, 2007 5:41:05 PM Subject: RE: How to check my current JVM settings From: Stefano Martines [mailto:[EMAIL PROTECTED] Subject: Re: How to check my current JVM settings 1) but how can I see what is the current setting? 2) where should I set the CATALINA_OPTS , on catalina.50.bat ? 3) What is the syntax of defining JVM paramters? You can't use CATALINA_OPTS when Tomcat is run as a Windows service. As Peter C noted, use the tomcat5w.exe program to change the JVM parameters. (I think 5.0.x had that program, but 5.0 is no longer supported.) Looks like you also need to read up on Java in general (left as an exercise for the reader, since that's not a Tomcat issue). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ