Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Java: Xss doesn't work

SOLVED
Go to Solution
Super Advisor

Java: Xss doesn't work

Hi colleagues,
I start a script where a Java program is run.
I got the error:
The stack size specified is too small, Specify at least 208k

When I start the program I specify the following options ... -Xms128m -Xmx500m -Xss256m ...
It seems that Xss doesn't work.
Which are the probable reasons of such problem?

regards
Enrico
4 REPLIES
Exalted Contributor Exalted Contributor

Re: Java: Xss doesn't work

Shalom Encrico,

Possible bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4709879
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4341019

Possible limits on your JVM.
http://java.sun.com/docs/books/jvms/second_edition/html/Overview.doc.html

If its a bug, the fix will eventually be released on http://www.hp.com/go/java

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Honored Contributor Honored Contributor

Re: Java: Xss doesn't work

Hi,

besides all possible java-bugs, a stacksize of 256Mb seems unreasonable to me.
Which JAVA-version?
What happens, when no option '-Xss...' is supplied?

MfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Honored Contributor Honored Contributor

Re: Java: Xss doesn't work

As said before, a stacksize of 256m is way too large. Keep in mind that - at least if I remember the documentation well, the stack size is allocated for every java thread, and that the total stack size may not exceed the maxssiz kernel parameter. On my system, I could set -Xss10m, but the JVM would run out of (stack-)memory as soon as it wants to start an 11th thread.

Try -Xss256k or -Xss512k, that would be more then sufficient.
Highlighted
Acclaimed Contributor Acclaimed Contributor

Re: Java: Xss doesn't work

>Wim: and that the total stack size may not exceed the maxssiz kernel parameter.

Yes, 256m is just too large.

The thread stack size isn't charged against maxssiz, that only limits the main thread stack.