>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) memory consuption is very high(3 times) than 
Tomcat 6 (6.0.28)

-----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
> -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.endorsed.dirs=/opt/tomcat/endorsed -classpath 
> /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
> -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat 
> -Djava.io.tmpdir=/opt/tomcat/temp 
> org.apache.catalina.startup.Bootstrap start
> 
>> Exact command-line that starts Tomcat6 (as given e.g. by "ps -ef
>> | grep java") :
> Tomcat6 <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
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.endorsed.dirs=/opt/tomcat/endorsed -classpath 
> /opt/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat 
> -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp 
> org.apache.catalina.startup.Bootstrap start
> 
>> Also, which exact example Tomcat application are you deploying in 
>> both cases above ?
> The default application came with apache tomcat 6 and tomcat7

Really? The Tomcat ROOT web application is taking up 3 times as much heap space 
in Tomcat 6 as Tomcat 7?

- -chris

> -----Original Message----- From: André Warnier [mailto:a...@ice-sa.com] 
> Sent: Monday, March 23, 2015 5:27 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)
> 
> 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, and have a look.
>> 
>> Yes, we have done the above suggested exercise. And got  the below 
>> output of top command result.
>> 
>> Development environment: =========================== RAM: 25 GB
>> CPU: CPU Intel(R) Xeon(R) CPU  X5450  @ 3.00GHz OS: RHEL Linux
>> (5.8) ==========================
>> 
>> Tomcat 6(6.0.28) Virtual Memory: 6772 MB Resident Memory: 81 MB
>> 
> 
> Exact command-line that starts Tomcat6 (as given e.g. by "ps -ef | 
> grep java") :
> 
> 
>> Tomcat 7(7.0.54) Virtual Memory: 6778 MB Resident Memory: 148 MB
>> 
> 
> Exact command-line that starts Tomcat7 (as given e.g. by "ps -ef | 
> grep java") :
> 
> (That is for us to know if, for example, there are any command-line 
> parameters that might explain the difference)
> 
> Also, which exact example Tomcat application are you deploying in both 
> cases above ?
> 
> Note: these questions are not asked to annoy you, or to delay a 
> response.  You realise that Tomcat is open-source free software, and 
> that the people manning this forum are doing that for free, on their 
> own time.  Also simulating your case will require someone to spend 
> some time creating the same setup as yours.  So all in all, the more 
> precise information which you provide, the more time you allow these 
> people to save in order to give you an accurate answer, and the faster 
> you will have that answer.
> 
> And if you want to know about heap dumps, this looks like a good start 
> :
> http://www.jahia.com/community/blogs/tips-and-tricks-for-analyzing-jav
> a-virtual-machine
>
> 
(searching Google for "tomcat heap dump")
> 
>>> If there is still a big difference between v6 and v7, then come back 
>>> here.  At least then there will be a reproducible test case for 
>>> someone here to have a closer look. And if there is not a big 
>>> difference, then obviously it must have something to with your 
>>> application.  And then, follow Mark's already-given advice to find 
>>> out what.
>> 
>> The initial value is also somewhere double of tomcat6.
>> 
>> 
>> Regards, Rahul Kumar Singh
>> 
>> -----Original Message----- From: André Warnier [mailto:a...@ice-sa.com] 
>> Sent: Monday, March 23, 2015 2:32 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)
>> 
>> 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 theoretically that is there any 
>>> difference in initial memory requirement of tomcat6 and tomcat 7?
>>> 
>>> 
>> 
>> 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.
>> 
>> If there is still a big difference between v6 and v7, then come back 
>> here.  At least then there will be a reproducible test case for 
>> someone here to have a closer look. And if there is not a big 
>> difference, then obviously it must have something to with your 
>> application.  And then, follow Mark's already-given advice to find 
>> out what.
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
>> 
>> 
>> DISCLAIMER: 
>> ---------------------------------------------------------------------
>> --------------------------------------------------
>>
>> 
The contents of this e-mail and any attachment(s) are confidential and
>> intended for the named recipient(s) only. It shall not attach any 
>> liability on the originator or NEC or its affiliates. Any views or 
>> opinions presented in this email are solely those of the author and 
>> may not necessarily reflect the opinions of NEC or its affiliates. 
>> Any form of reproduction, dissemination, copying, disclosure, 
>> modification, distribution and / or publication of this message 
>> without the prior written consent of the author of this e-mail is 
>> strictly prohibited. If you have received this email in error please 
>> delete it and notify the sender immediately. .
>> ---------------------------------------------------------------------
>> --------------------------------------------------
>>
>>
>> 
- ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For 
>> additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> 
> DISCLAIMER: 
> ----------------------------------------------------------------------
> -------------------------------------------------
>
> 
The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only. It shall not attach any 
> liability on the originator or NEC or its affiliates. Any views or 
> opinions presented in this email are solely those of the author and 
> may not necessarily reflect the opinions of NEC or its affiliates.
>  Any form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and / or publication of this message 
> without the prior written consent of the author of this e-mail is 
> strictly prohibited. If you have received this email in error please 
> delete it and notify the sender immediately. .
> ----------------------------------------------------------------------
> -------------------------------------------------
>
>  
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVECGFAAoJEBzwKT+lPKRYfhcP/0uzzr/RZbJZR0NWv2EZ7oGo
SS6RE8uDx4AV8PzyK7i5M0EDYoXHrj9igpRzsJTcgniH16VF2PW5YsM3HoG5FRQY
SgDSGFeti4YRVpRq6ofoLB5P9+SjR7UQm2WCX8EDYE0OM9iYoLbpLkLbD2RCa9hz
3ZtQbvCp5c6eaJKY7PdEHge7vsvlbi8blSoTNZLHvGLCUNyCfciCEd2TNKfFfIxg
dA8wHOrb1Sa+P1DhlFgCADDIREl3GHOUhMs8YBR1zvWTczjzjPn++YvMGDPrEmJk
T01QRiFtRexZez1fdSKrSEodFrxKh7goa3CwAveOiY0cprURcCg90cTYEn/esVXl
R0DYlQDEbOXlD7N8L1aZyKXshRvGuusEcmlzZHNQpbGNqiwmNL/ULMWnGG8L+Kya
nNhyUNOUitczSGn7p+Q/vH1RoUBXIBfd5x4LaEvwNq5mP5LPXuGPVxbBYUQWicbL
uwGQOAa6g+CB0Fz6nt8ostlK79OB/Rwxfzx+f6KBRi8b5U7y1A5WKptOW7YJR6+6
Zr5+nC73NLmt8bTOwtl5qlAldjIdVsUl+vW07c/xGMVo5ni8vqImxmsznxmAtBnE
QQ3Z9DUKIj10VXp8/fv8+W/4/PbsoTsVLD3IGkGy8390gLVaRYUIylbvZzzy/2Ee
phJ+Jj4pzuBZvljod7BJ
=1Hs1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only. 
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the
opinions of NEC or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------

Reply via email to