[nycbug-talk] java/batik problems
Charles Sprickman
spork
Sat Oct 8 17:18:12 EDT 2005
On Fri, 7 Oct 2005, Nikolai N. Fetissov wrote:
> It's not the physical ram, it's the jvm heap size limit.
> Dig around ant config to see if you can increase that.
> I don't have java on a bsd box, this is under gentoo:
That looks very interesting. I found a "build.sh" file in the build
directory that has a line like this:
build.sh:$JAVA_HOME/bin/java $ANT_OPTS -classpath $CP
org.apache.tools.ant.Main -emacs -Dant.home=$ANT_HOME $TARGET -Dargs="$*"
I tried adding a "-Xmx100000000" (not knowing what units are being used -
bytes, kb, mb...) and it still failed with the same error. Grepping for
"ANT_OPTS" only turned up the following:
root at blarg[/usr/ports/graphics/batik/work/xml-batik]# grep ANT_OPTS *
build.bat:%JAVA_HOME%\bin\java.exe %ANT_OPTS% -classpath %CP%
org.apache.tools.ant.Main -emacs -Dant.home=. %1 -Dargs="%2 %3 %4 %5 %6 %7
%8 %9"
build.sh:$JAVA_HOME/bin/java -Xmx100000000 $ANT_OPTS -classpath $CP
org.apache.tools.ant.Main -emacs -Dant.home=$ANT_HOME $TARGET -Dargs="$*"
I do think you're right though that this is a java issue. My ulimits show
"unlimited" on everything.
I'll dig around a bit more and see if I can figure out just how the build
process works - I'm totally unfamiliar with java.
thanks,
Charles
> nickf at paris ~ $ /home/SUNWappserver/jdk/bin/java -X
> -Xmixed mixed mode execution (default)
> -Xint interpreted mode execution only
> -Xbootclasspath:<directories and zip/jar files separated by :>
> set search path for bootstrap classes and resources
> -Xbootclasspath/a:<directories and zip/jar files separated by :>
> append to end of bootstrap class path
> -Xbootclasspath/p:<directories and zip/jar files separated by :>
> prepend in front of bootstrap class path
> -Xnoclassgc disable class garbage collection
> -Xincgc enable incremental garbage collection
> -Xloggc:<file> log GC status to a file with time stamps
> -Xbatch disable background compilation
> -Xms<size> set initial Java heap size
> -Xmx<size> set maximum Java heap size
> -Xss<size> set java thread stack size
> -Xprof output cpu profiling data
> -Xrunhprof[:help]|[:<option>=<value>, ...]
> perform JVMPI heap, cpu, or monitor profiling
> -Xdebug enable remote debugging
> -Xfuture enable strictest checks, anticipating future default
> -Xrs reduce use of OS signals by Java/VM (see
> documentation)
> -Xcheck:jni perform additional checks for JNI functions
>
> The -X options are non-standard and subject to change without notice.
> nickf at paris ~ $
>
> Hope this helps.
> --
> nikolai
>
More information about the talk
mailing list