RE: Please help : StackOverFlow error

2008-01-07 Thread Peter Crowther
> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED]
> Is there a way of determining what are "reasonable" values
> for the stack
> size (maybe according to the potential number of threads, ...) ?

Profile the app.  And, for you in particular, know how deep the recursion will 
go and hence how large one stack needs to be.

Also, can you move any data off the stack onto the heap?  This reduces your 
maximum stack size.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help : StackOverFlow error

2008-01-07 Thread Benoit VARVENNE
Hi Peter,

Thanks a lot. '-Xss' option works great.
Is there a way of determining what are "reasonable" values for the stack
size (maybe according to the potential number of threads, ...) ?
In fact I am not really used to such configurations...

Thanks again
Cheers,
Benoit

Le 7/01/08 16:33, « Peter Crowther » <[EMAIL PROTECTED]> a écrit :

>> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED]
>>> "Exception in thread "Thread-8" java.lang.StackOverflowError"
>> 
>> The expansive algorithm is a recursive one.
>> 
>> I now always have StackOverFlow exceptions.
>> 
>> I have already tried to customize JVM memory options with the
>> following line
>> in my ".profile" file :
>>>export CATALINA_OPTS="-server -showversion -Xmx512m"
>> But I always have the same error message.
>> 
>> Can anyone help me ?
> 
> Check -Xss - this changes the stack size.  You might want to change this.
> 
>   - Peter
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


This email contains confidential and proprietary information some or all of
which may be legally privileged. It is for the intended recipient only.
If you have received this email in error, please notify the author
immediately by telephone or by replying to this email. If you are not the
intended recipient you must not use, disclose, distribute, copy, print, or
rely on this email.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help : StackOverFlow error

2008-01-07 Thread Peter Crowther
> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED]
> > "Exception in thread "Thread-8" java.lang.StackOverflowError"
>
> The expansive algorithm is a recursive one.
>
> I now always have StackOverFlow exceptions.
>
> I have already tried to customize JVM memory options with the
> following line
> in my ".profile" file :
> >export CATALINA_OPTS="-server -showversion -Xmx512m"
> But I always have the same error message.
>
> Can anyone help me ?

Check -Xss - this changes the stack size.  You might want to change this.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]