Re: Changing Stack Size in Tomcat 4.130
At 02:09 PM 12/29/2004, you wrote: Sweta Kapadia wrote: Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] A lot of times when I see this I think about a loop running out of control. Are you getting this from tried and true code, and are you getting this when you are debugging (so to see what is going on)? Maybe put in some logging and things before you have to rearrange the stack size. Good call; maybe also analyze where you might be using recursion, and the recursive loop never "bottoms" out and therefore quickly blows the stack. Brad Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Brad Neuberg, [EMAIL PROTECTED] Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org = Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing Stack Size in Tomcat 4.130
Wade Chandler wrote: Sweta Kapadia wrote: Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] A lot of times when I see this I think about a loop running out of control. Are you getting this from tried and true code, and are you getting this when you are debugging (so to see what is going on)? Maybe put in some logging and things before you have to rearrange the stack size. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] That being a recursion loopbe sure you check for that. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing Stack Size in Tomcat 4.130
Sweta Kapadia wrote: Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] A lot of times when I see this I think about a loop running out of control. Are you getting this from tried and true code, and are you getting this when you are debugging (so to see what is going on)? Maybe put in some logging and things before you have to rearrange the stack size. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing Stack Size in Tomcat 4.130
Keep in mind that I believe increasing the stack size too large can have performance implications. If I understand correctly each thread has a stack that stores process information so that as threads context switch in and out this information gets copied into and out of memory; if you increase the stack size more memory will have to get copied in and out, slowing down performance. Can folks correct me on this if I am wrong? Is this a correct understanding of the stack? Would this be a true bottleneck for performance? Thanks, Brad At 01:41 PM 12/29/2004, you wrote: Hi Sweta. I assume you mean increase the stack size available to each thread. From http://blogs.sun.com/roller/resources/watt/jvm-options-list.html, which is a giant list of JVM options: -Xss - size - set maximum native stack size for any thread Also do a 'ulimit -a' to determine what your process constraints are on stack size; if you increase the stack size using the -Xss option but don't give your process permission to use that extra stack size you will get exceptions as well. Hope this works. Brad At 01:20 PM 12/29/2004, you wrote: Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Brad Neuberg, [EMAIL PROTECTED] Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org = Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. Brad Neuberg, [EMAIL PROTECTED] Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org = Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing Stack Size in Tomcat 4.130
Hi Sweta. I assume you mean increase the stack size available to each thread. From http://blogs.sun.com/roller/resources/watt/jvm-options-list.html, which is a giant list of JVM options: -Xss - size - set maximum native stack size for any thread Also do a 'ulimit -a' to determine what your process constraints are on stack size; if you increase the stack size using the -Xss option but don't give your process permission to use that extra stack size you will get exceptions as well. Hope this works. Brad At 01:20 PM 12/29/2004, you wrote: Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Brad Neuberg, [EMAIL PROTECTED] Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org = Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html.
Changing Stack Size in Tomcat 4.130
Hi, How would I go about increasing the stack size in Tomcat? I"m gettig a StackOverflowError, thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]