I am using jboss-5.1.0.GA in Win XP in the development environment.
The application needs to parse a XML file in one of the modules, the average size of the file is around 75MB.
I have tried the validity of the parsing routine with smaller files are there is no problem regarding that. When I try to parse the full version of the file I am getting, java.lang.OutOfMemoryError: Java heap space.
I have tried to set the heap size configuration in the $JBOSS_HOME/bin/run.conf file.
The current entry now looks like -
# Specify options to pass to the Java VM.
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
The run.conf file is used only on *nix (or are you using cygwin and running run.sh?)
On Windows you should edit run.conf.bat.