Re: [Resin-interest] implicit stack memory size?

2009-01-09 Thread Jay Ballinger
Thanks much, guys, for the replies. We've arrived at the same conclusion that Scott suggests - a GB for the heap and the other GB for the product (roughly) of the threads and the stack size in our windows 32-bit environment. Now it's an exercise in testing the actual -Xss size that we want to r

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Scott Ferguson
On Jan 8, 2009, at 5:23 PM, Rob Lockstone wrote: > On Jan 8, 2009, at 13:52, Jay Ballinger wrote: > >> Hi everyone, >> >> We're running Resin 3.0.18 Pro on a Windows 32-bit system and we're >> looking to understand/tune our memory settings a bit. >> >> According to http://www.caucho.com/resin-3.0

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Rob Lockstone
As you can see, it's all over the map, which is probably why: (1) Caucho sets it explicitly (and to a very conservative value); (2) it's always best to set the stack size yourself so you know what you're getting; and (3) test it yourself with the value(s) you'd like to use in the environmen

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Serge Knystautas
Rob Lockstone wrote: >> (general sun jvm on windows questions) >> - What is the default stack memory size? > > That's too general of a question. It depends on the OS, and (perhaps) > the version of the OS. I did this research a while ago, but seems relevant: Default in Sun JDK 1.2 on un

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Rob Lockstone
On Jan 8, 2009, at 13:52, Jay Ballinger wrote: > Hi everyone, > > We're running Resin 3.0.18 Pro on a Windows 32-bit system and we're > looking to understand/tune our memory settings a bit. > > According to http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp > the stack size is set to 2

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Jay Ballinger
Knut, Thanks for the info. Just a check on the math - if Win32 has a 2GB max addressable space, that includes heap and stack and misc. overhead, right? If we set resin heap to 1GB and allow each thread to use the 'default' of 2048k, and we see the number of threads running at about 700, then w

Re: [Resin-interest] implicit stack memory size?

2009-01-08 Thread Knut Forkalsrud
On Thu, Jan 8, 2009 at 1:52 PM, Jay Ballinger wrote: > - When a thread is created, does it grab all of the stack memory, or can > the stack memory start small and grow to the default or -Xss size? If I'm not mistaken the memory is allocated, but it is virtual memory, so unless it is actually used

[Resin-interest] implicit stack memory size?

2009-01-08 Thread Jay Ballinger
Hi everyone, We're running Resin 3.0.18 Pro on a Windows 32-bit system and we're looking to understand/tune our memory settings a bit. According to http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp the stack size is set to 2048k unless set otherwise. Is this true? In using JConsole we