You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brooke Hedrick <br...@gmail.com> on 2012/03/05 18:54:19 UTC
Re: RE : Tomcat7 OutOFMemoryError
On Mar 5, 2012 11:34 AM, "Christopher Schultz" <ch...@christopherschultz.net>
wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Philippe,
>
> On 3/5/12 8:14 AM, Philippe ROUXEL wrote:
> > 75MB of stack is needed by hibenate to save the data aka a graph.
>
Philippe, are you confusing stack memory with heap memory?
> What!? Does Hibernate have some kind of method that needs to call itself
> recursively 100,000 times?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk9U+QoACgkQ9CaO5/Lv0PBohQCgkNWLGYeCYUpza6SCeHWB0MfU
> r/YAniIl3sAUg/59qNoh8CJmkJKDhCn/
> =2gvb
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: RE : Tomcat7 OutOFMemoryError
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chuck,
On 3/5/12 5:20 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>> Subject: Re: RE : Tomcat7 OutOFMemoryError
>
>>> Thread Stack Size (in Kbytes). (0 means use default stack
>>> size) [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and
>>> earlier); Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0
>>> and earlier); all others 0.]
>
>> How can the default default be 0?!
>
> Very, very short-lived programs...
>
> The reference to zero means "default stack size" for the OS.
Yes, at the command-line. It looked like Pid was quoting the
documentation for what the default stack size was on a particular
platform (used presumably when you set them to '0' or didn't specify
them at all). If the default is 0, then ... ?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9VXJoACgkQ9CaO5/Lv0PCMPQCgpbnk/Iaoo7xunKiRAa7sByRW
I9gAn0lrzRcnaRqSyUHo715aUocnt6j7
=2BUQ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: RE : Tomcat7 OutOFMemoryError
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Subject: Re: RE : Tomcat7 OutOFMemoryError
> > Thread Stack Size (in Kbytes). (0 means use default stack size)
> > [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier);
> > Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0 and earlier);
> > all others 0.]
> How can the default default be 0?!
Very, very short-lived programs...
The reference to zero means "default stack size" for the OS.
- 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.
Re: RE : Tomcat7 OutOFMemoryError
Posted by Pid <pi...@pidster.com>.
On 05/03/2012 22:09, Christopher Schultz wrote:
> Pid,
>
> On 3/5/12 3:54 PM, Pid wrote:
>> Varies by OS too.
>
>> -XX:ThreadStackSize=512
>
>> Thread Stack Size (in Kbytes). (0 means use default stack size)
>> [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier);
>> Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0 and earlier);
>> all others 0.]
>
> How can the default default be 0?!
I'm just quoting the docs!
p
--
[key:62590808]
Re: RE : Tomcat7 OutOFMemoryError
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pid,
On 3/5/12 3:54 PM, Pid wrote:
> Varies by OS too.
>
> -XX:ThreadStackSize=512
>
> Thread Stack Size (in Kbytes). (0 means use default stack size)
> [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier);
> Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0 and earlier);
> all others 0.]
How can the default default be 0?!
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9VObIACgkQ9CaO5/Lv0PARCwCeK4OExMI0Xm3ZLfM/ji/gbHkm
A4MAn1VgN5loW2QyiayGdDW6rb4WZBlb
=QiA5
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RE : Tomcat7 OutOFMemoryError
Posted by Pid <pi...@pidster.com>.
On 05/03/2012 20:39, Caldarale, Charles R wrote:
>> From: André Warnier [mailto:aw@ice-sa.com]
>> Subject: Re: RE : Tomcat7 OutOFMemoryError
>
>> I found this page which may be of interest :
>> http://www.odi.ch/weblog/posting.php?posting=411
>
> This one's also pretty interesting, especially the link to Cliff Click's blog:
> http://mail.openjdk.java.net/pipermail/hotspot-dev/2011-June/004272.html
>
> (CC's blog doesn't have much to do with the OP's problem, but it illustrates the complexity of stack handling in the JVM and why one size fits none.)
Varies by OS too.
-XX:ThreadStackSize=512
Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc:
512; Solaris x86: 320 (was 256 prior in 5.0 and earlier); Sparc 64 bit:
1024; Linux amd64: 1024 (was 0 in 5.0 and earlier); all others 0.]
From:
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
p
> - 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
[key:62590808]
RE: RE : Tomcat7 OutOFMemoryError
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: Re: RE : Tomcat7 OutOFMemoryError
> I found this page which may be of interest :
> http://www.odi.ch/weblog/posting.php?posting=411
This one's also pretty interesting, especially the link to Cliff Click's blog:
http://mail.openjdk.java.net/pipermail/hotspot-dev/2011-June/004272.html
(CC's blog doesn't have much to do with the OP's problem, but it illustrates the complexity of stack handling in the JVM and why one size fits none.)
- 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RE : Tomcat7 OutOFMemoryError
Posted by André Warnier <aw...@ice-sa.com>.
Brooke Hedrick wrote:
> On Mar 5, 2012 11:34 AM, "Christopher Schultz" <ch...@christopherschultz.net>
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Philippe,
>>
>> On 3/5/12 8:14 AM, Philippe ROUXEL wrote:
>>> 75MB of stack is needed by hibenate to save the data aka a graph.
>
> Philippe, are you confusing stack memory with heap memory?
>
>> What!? Does Hibernate have some kind of method that needs to call itself
>> recursively 100,000 times?
>>
I found this page which may be of interest :
http://www.odi.ch/weblog/posting.php?posting=411
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org