Re: Stack overflows running JDK 1.3.1 on Fedora Core 2



rcf_programmer@xxxxxxxxx wrote:
I know these are old version but I was wondering if anyone had any
suggestions as to how to proceed on this.

Have you tried http://bugs.sun.com ?

My first suggestion would be to move the JDK 1.4 (at least) and use:

/usr/java/j2sdk1.4.2_11/bin/javac
-source 1.3
-target 1.3
-bootclasspath /usr/java/jdk1.3.1_02/jre/lib/rt.jar

I have set "ulimit -s unlimited" but that does not cure the problem,
which to me points to runaway recursion or conceivably a garbage
collection failure.

There was a problem with 1.3 and the request stack size not being honoured, leading to a seg fault (IIRC, rather than StackOverflowError). IIRC, that could be fixed with ulimit -s, but I think the version of glibc after RedHat 9 should not have the problem.

The stack size allocated by the JVM is important. You can change that with -J-Xss. However, you may need to use that in conjunction with ulimit on versions of Java before 1.6, because -J-Xss does not apply to the thread the process is started with (the main thread, in Java terms).

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Re: AIX java update for DST
    ... The Java installation Directory /usr/java14/jre is ... You may use "ulimit -d unlimited" to set data limit ... Get your game face on with the latest PS3 news and previews at Yahoo! ...
    (AIX-L)
  • Re: "Error occurred during initialization of VM" Error Message
    ... Could not reserve enough space for object heap" ... but Java ... memory Java can claim on various OS? ... These are defined by ulimit. ...
    (comp.lang.java.programmer)
  • Questions about /etc/profile ulimit -Hn and /etc/initscript & /etc/security/limits
    ... When running java w/ another program I get this error message- ... java.io.IOException: Too many open files ... 2)create /etc/initscript as described in man initscript, ... "ulimit -Hn 65536" anywhere in that file?? ...
    (Debian-User)
  • Re: garbage collector
    ... I've been working in Java since the summer of 1997, and I don't recall its ever being particularly fast. ... I have a memory of a thread posted hereabouts around the 1.2->1.3 era revolving around, IIRC, an image process library. ... it turned out that System.gc used to pretty much be ignored if there had just been a significant collection. ...
    (comp.lang.java.programmer)
  • Re: -mx1024m OK, but -mx2048m not OK
    ... do all distros have Java ... On linux you need to issue the ulimit ... My preference for linux is Suse professional. ...
    (comp.lang.java.programmer)