RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Exact command-line that starts Tomcat7 (as given e.g. by ps -ef | grep java) : Tomcat7 application user 5597 1 38 02:11 ?00:00:13 /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Plz ignore previous mail -Original Message- From: Rahul Kumar Singh Sent: Monday, March 23, 2015 6:05 PM To: Tomcat Users List Subject: RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Exact command-line that starts Tomcat6 (as given e.g. by ps -ef |

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Exact command-line that starts Tomcat6 (as given e.g. by ps -ef | grep java) : application user 2860 1 0 10:34 ?00:01:35 /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties

Re: JSP compilation fails with Tomcat 8.0.20. Works with 8.0.11

2015-03-23 Thread Jürgen Schwarz
Am 23.03.2015 13:33, schrieb Konstantin Kolinko: Make sure that you have cleaned the work directory of the web application (from compiled classes of JSPs and tags compiled by older versions). Make sure that you do not have odd old Jasper jars in your WEB-INF/lib directory, e.g. pulled there

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread André Warnier
Rahul Kumar Singh wrote: Hello André Warnier, Thanks for your response. That should be much easier and quicker to check this by yourself, as you obviously already have the 2 Tomcat versions up and running. Remove your own application, deploy one of the standard Tomcat-examples applications,

JSP compilation fails with Tomcat 8.0.20. Works with 8.0.11

2015-03-23 Thread Jürgen Schwarz
Hi, we've some very simple JSP pages that compile and work fine on Tomcat 8.0.11. However they don't compile and run on Tomcat 8.0.20. All running on Windows 7. We get the following errors: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [19]

Re: JSP compilation fails with Tomcat 8.0.20. Works with 8.0.11

2015-03-23 Thread Konstantin Kolinko
2015-03-23 15:11 GMT+03:00 Jürgen Schwarz juergen.schw...@gefasoft.de: Hi, we've some very simple JSP pages that compile and work fine on Tomcat 8.0.11. However they don't compile and run on Tomcat 8.0.20. All running on Windows 7. We get the following errors:

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 3/23/15 10:33 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Mark Thomas
On 23/03/2015 07:05, Rahul Kumar Singh wrote: Hi Tomcat support team, While upgrading Tomcat from tomcat 6(6.0.28) to tomcat 7 (7.0.54). the following problem happens. TOMCAT 7 (7.0.54) memory consumption increased about approx. 3 times compare to the existing tomcat 6 (6.0.28) memory

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Dear Thomas, Thanks for your quick response, Tomcat doesn't use anything like that much memory on its own. I suspect it is the application although the difference between Tomcat 6 and Tomcat 7 is unexpected. Ok, I understand, But could you please confirm us theoretically that is there

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Really? The Tomcat ROOT web application is taking up 3 times as much heap space in Tomcat 6 as Tomcat 7? Just remember that the

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Really? The Tomcat ROOT web application is taking up 3 times as much heap space in Tomcat 6 as Tomcat 7? Yes. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, March 23, 2015 7:52 PM To: Tomcat Users List Subject: Re: Tomcat 7 (7.0.54)

Re: Java Heap Space / Thread Dump Numbers

2015-03-23 Thread Антон Мацюк
2015-03-21 12:37 GMT+02:00 Антон Мацюк denixx.bay...@gmail.com: 2015-03-21 2:06 GMT+02:00 Eric Robinson eric.robin...@psmnv.com: Set this options to JVM, and it will make heapdumps automatically. Will these heap dumps be the same size as the current tomcat memory utilization? Yeap, and OOM

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Just remember that the numbers out of top are at best approximations, and, as Rainer pointed out, not taking measurements immediately after a GC is a guarantee of an apples versus oranges comparison. The appropriate tools (e.g., VisualVM) must be used for any rational analysis. During the

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 3/23/15 10:33 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Really? The Tomcat ROOT web

Re: ClassNotFoundError on context unload

2015-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Austin, On 3/22/15 10:11 PM, Austin Jones wrote: After a bit of debugging, I found the issue. The stack traces below are on 8.0.12-src. The bug occurs at this stack: StandardContext.reload() line: 3779

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 3/23/15 8:39 AM, Rahul Kumar Singh wrote: Exact command-line that starts Tomcat7 (as given e.g. by ps -ef | grep java) : Tomcat7 application user 5597 1 38 02:11 ?00:00:13 /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rainer Jung
Am 23.03.2015 um 16:26 schrieb André Warnier: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 3/23/15 10:33 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 7 (7.0.54) memory consuption is

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Caldarale, Charles R
From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Also interesting is cat /proc/PID/maps but here one would need to calculate sizes per line from the two hex addresses given at the start of

Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Hi Tomcat support team, While upgrading Tomcat from tomcat 6(6.0.28) to tomcat 7 (7.0.54). the following problem happens. TOMCAT 7 (7.0.54) memory consumption increased about approx. 3 times compare to the existing tomcat 6 (6.0.28) memory consumption. Tomcat 6.0.28 memory consumption MAP.

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread André Warnier
Rahul Kumar Singh wrote: Dear Thomas, Thanks for your quick response, Tomcat doesn't use anything like that much memory on its own. I suspect it is the application although the difference between Tomcat 6 and Tomcat 7 is unexpected. Ok, I understand, But could you please confirm us

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Hello André Warnier, Thanks for your response. That should be much easier and quicker to check this by yourself, as you obviously already have the 2 Tomcat versions up and running. Remove your own application, deploy one of the standard Tomcat-examples applications, and have a look. Yes, we

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rainer Jung
Am 23.03.2015 um 10:02 schrieb André Warnier: Rahul Kumar Singh wrote: Dear Thomas, Thanks for your quick response, Tomcat doesn't use anything like that much memory on its own. I suspect it is the application although the difference between Tomcat 6 and Tomcat 7 is unexpected. Ok, I

Re: ClassNotFoundError on context unload

2015-03-23 Thread Mark Thomas
On 23/03/2015 02:11, Austin Jones wrote: After a bit of debugging, I found the issue. The stack traces below are on 8.0.12-src. The bug occurs at this stack: StandardContext.reload() line: 3779 HostConfig.reload(HostConfig$DeployedApplication) line: 1306

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread André Warnier
Caldarale, Charles R wrote: From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Also interesting is cat /proc/PID/maps but here one would need to calculate sizes per line from the two hex addresses

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rainer Jung
Am 23.03.2015 um 17:16 schrieb Caldarale, Charles R: From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28) Also interesting is cat /proc/PID/maps but here one would need to calculate sizes per line

RE: Java Heap Space / Thread Dump Numbers

2015-03-23 Thread Eric Robinson
// One correction, option -XX:-HeapDumpOnOutOfMemoryError disables heapdumps on OOM, you should use -XX:+HeapDumpOnOutOfMemoryError - with plus sign, to enable it. // Thanks for the follow-up. --Eric

Re: ClassNotFoundError on context unload

2015-03-23 Thread Austin Jones
Hi Mark, Sorry for the ambiguous 'unload' language, I suppose the tomcat language would be 'context stop'. The issue occurs when deploying the WAR using the Tomcat Manager interface (*not *by dropping the WAR in /webapps). You should be able to reproduce the issue with these steps: 1. Build

Re: ClassNotFoundError on context unload

2015-03-23 Thread Austin Jones
Hi Chris, If MyClass had been loaded at initialization time (like your sample code shows), it should not have needed to be loaded back off the disk for shutdown. In my first example, the ClassNotFoundError is thrown when enabled=false. When enabled=true, the error doesn't occur. Is it

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-23 Thread Rahul Kumar Singh
Also interesting is cat /proc/PID/maps but here one would need to calculate sizes per line from the two hex addresses given at the start of each line. Something like: cat /proc/PID/maps | perl -n -e '($a,$b)=split(/[- ]/);print hex($b)-hex($a), , $_;' | sort -n (replace PID by the current