RE: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread kalpanab

Thank you for all your suggestions. I did not wait till getting out of
memory. I analyzed heap dumps continuous and find keeps on increasing the
objects and also taking more memory so I stopped after half an hour. I want
to know why StandardSessions are increasing. It is not happening in tomcat
5.5.28.
See the attached image for the finding out what taking more memory. 
http://www.nabble.com/file/p25883072/Tomcat6.0.20-heap-analysis.png 

Thanks,
Kalpana



Caldarale, Charles R wrote:
> 
>> From: Curtis Garman [mailto:curt.gar...@gmail.com]
>> Subject: Re: Getting out of memory using tomcat 6.0.20 but works fine
>> in tomcat 5.5.28
>> 
>> I believe the default amount of PermGenSpace in tomcat was reduced
>> between 5 and 6...
> 
> You believe incorrectly.  Tomcat itself cannot affect the JVM heap
> settings, since they're already established by the time any Tomcat logic
> gets control.  It is possible for the startup scripts to set heap size
> values, but the ones distributed with Tomcat do not.  It is theoretically
> possible that Tomcat 6.0 requires a larger PermGen than 5.5 did, but I
> have seen no evidence to support that (there is some evidence that the
> opposite is true).
> 
> Without more information about what portion of the heap is exhausted, this
> is all speculation.  Since an OOME is also thrown for a variety of
> non-heap issues, this may not even be heap related.
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-out-of-memory-using-tomcat-6.0.20-but-works-fine-in-tomcat-5.5.28-tp25866219p25883072.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kalpana,

On 10/12/2009 10:22 PM, kalpanab wrote:
> My application working fine in tomcat 5.5.28 and java version "1.5.0_19"
> while doing load balancing tests. But when I upgrade tomcat to version
> 6.0.20 getting out of memory soon. I looked at the heap dump using Eclipse
> memory analyzer below listed taking more memory.
> 
> java.util.concurrent.ConcurrentHashMap$Segment  44.73 %  (3,353 objects)

What does that 44.73% mean?

Since you have a profiler handy, can you see what objects are hanging
onto the ConcurrentHashMap objects that "own" those Segment objects?

I have seen several reports from Tomcat users here on the list that
Tomcat 6.0 appears to take more memory than Tomcat 5.5, so it's possible
that you will need to increase your heap size in order to feed the later
version.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrU++8ACgkQ9CaO5/Lv0PDDJACdHEwUx5etsFEbB0E9aS/sHaki
0lsAn11sOUOM36TOgX9BSClPpfvsIPm6
=P5CE
-END PGP SIGNATURE-

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



RE: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Caldarale, Charles R
> From: Curtis Garman [mailto:curt.gar...@gmail.com]
> Subject: Re: Getting out of memory using tomcat 6.0.20 but works fine
> in tomcat 5.5.28
> 
> I believe the default amount of PermGenSpace in tomcat was reduced
> between 5 and 6...

You believe incorrectly.  Tomcat itself cannot affect the JVM heap settings, 
since they're already established by the time any Tomcat logic gets control.  
It is possible for the startup scripts to set heap size values, but the ones 
distributed with Tomcat do not.  It is theoretically possible that Tomcat 6.0 
requires a larger PermGen than 5.5 did, but I have seen no evidence to support 
that (there is some evidence that the opposite is true).

Without more information about what portion of the heap is exhausted, this is 
all speculation.  Since an OOME is also thrown for a variety of non-heap 
issues, this may not even be heap related.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Curtis Garman
What do your logs say? Is it a "out of perm gen space" error? I
believe the default amount of PermGenSpace in tomcat was reduced
between 5 and 6...so you may need to increase it.

On Mon, Oct 12, 2009 at 9:22 PM, kalpanab  wrote:
>
> Hi All,
>
> My application working fine in tomcat 5.5.28 and java version "1.5.0_19"
> while doing load balancing tests. But when I upgrade tomcat to version
> 6.0.20 getting out of memory soon. I looked at the heap dump using Eclipse
> memory analyzer below listed taking more memory.
>
> java.util.concurrent.ConcurrentHashMap$Segment      44.73 %  (3,353 objects)
>
> ConcurrentHashMap$Segment contains the objects of
> java.util.concurrent.locks.ReentrantLock$NonfairSync and
> java.util.concurrent.ConcurrentHashMap$HashEnry[].
>
> I am using 64 bin sun os (5.10 Generic_120012-14 i86pc i386 i86pc).
>
> Any bug in tomcat 6.0.20 version?
>
> Thanks,
> Kalpana
>
>
> --
> View this message in context: 
> http://www.nabble.com/Getting-out-of-memory-using-tomcat-6.0.20-but-works-fine-in-tomcat-5.5.28-tp25866219p25866219.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-- 
Curtis Garman
Web Programmer
Heartland Community College

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



Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-12 Thread kalpanab

Hi All,

My application working fine in tomcat 5.5.28 and java version "1.5.0_19"
while doing load balancing tests. But when I upgrade tomcat to version
6.0.20 getting out of memory soon. I looked at the heap dump using Eclipse
memory analyzer below listed taking more memory.

java.util.concurrent.ConcurrentHashMap$Segment  44.73 %  (3,353 objects)

ConcurrentHashMap$Segment contains the objects of
java.util.concurrent.locks.ReentrantLock$NonfairSync and
java.util.concurrent.ConcurrentHashMap$HashEnry[].

I am using 64 bin sun os (5.10 Generic_120012-14 i86pc i386 i86pc). 

Any bug in tomcat 6.0.20 version? 

Thanks,
Kalpana
 
  
-- 
View this message in context: 
http://www.nabble.com/Getting-out-of-memory-using-tomcat-6.0.20-but-works-fine-in-tomcat-5.5.28-tp25866219p25866219.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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