Re: Java: Xss doesn't work (120 Views)
Reply
Super Advisor
Enrico Venturi
Posts: 378
Registered: ‎04-08-1998
Message 1 of 5 (120 Views)
Accepted Solution

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
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 5 (120 Views)

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
Please use plain text.
Honored Contributor
Peter Nikitka
Posts: 1,575
Registered: ‎02-10-2003
Message 3 of 5 (120 Views)

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"
Please use plain text.
Honored Contributor
Wim Rombauts
Posts: 886
Registered: ‎08-20-1997
Message 4 of 5 (120 Views)

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.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,888
Registered: ‎03-06-2006
Message 5 of 5 (120 Views)

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.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation