J9 OutOfMemory Error

Hello Everyone,

I am trying run an Apache product called the xindice. It is an xml database,
and runs with jvm 1.3. When I run it with j9, I am getting
java.lang.OutOfMemoryError.

I am using the following statement (updated/modified for j9) in xindice’s
startup script.

j9 -bp:/usr/eclipse/ive/lib/jclMax/classes.zip -vmargs -ms:20 -jit -mo:32000
-mx:2000000 -Xms16m -Xmx168m -Dxindice.home="$XINDICE_HOME"
$VMPROPS -classpath “$CLASSPATH” org.apache.xindice.server.Xindice $* &



I believe -mx is the memory size for the VM (I had 2000 initially).

Any tip will be appreciated. Also, please let me know if there are any
documentation on using the JVM as a ‘NON’ embedded mode. Say you want to
start the JVM once for house keeping and shut down and start later and use
it when you need it.



Thanks

Matt Madhavan

Which version of J9 are you running?


Charlie


“Matt Madhavan (Icon)” <mmadhavan@icon-nicholson.com> wrote in message
news:b16sv8$2ei$1@inn.qnx.com

Hello Everyone,

I am trying run an Apache product called the xindice. It is an xml
database,
and runs with jvm 1.3. When I run it with j9, I am getting
java.lang.OutOfMemoryError.

I am using the following statement (updated/modified for j9) in xindice’s
startup script.


j9 -bp:/usr/eclipse/ive/lib/jclMax/classes.zip -vmargs -ms:20 -jit -mo:32000
-mx:2000000 -Xms16m -Xmx168m -Dxindice.home="$XINDICE_HOME"
$VMPROPS -classpath “$CLASSPATH” org.apache.xindice.server.Xindice $* &



I believe -mx is the memory size for the VM (I had 2000 initially).

Any tip will be appreciated. Also, please let me know if there are any
documentation on using the JVM as a ‘NON’ embedded mode. Say you want to
start the JVM once for house keeping and shut down and start later and use
it when you need it.



Thanks

Matt Madhavan

Hi Charlie,
I am using the J9 that comes with the qnx 6.2 distribution. It is 1.5.

Thanks
Matt

“Charlie Surface” <charlie_surface@oti.com> wrote in message
news:b1pd7h$3v1$1@inn.qnx.com

Which version of J9 are you running?


Charlie


“Matt Madhavan (Icon)” <> mmadhavan@icon-nicholson.com> > wrote in message
news:b16sv8$2ei$> 1@inn.qnx.com> …
Hello Everyone,

I am trying run an Apache product called the xindice. It is an xml
database,
and runs with jvm 1.3. When I run it with j9, I am getting
java.lang.OutOfMemoryError.

I am using the following statement (updated/modified for j9) in
xindice’s
startup script.



j9 -bp:/usr/eclipse/ive/lib/jclMax/classes.zip -vmargs -ms:20 -jit -mo:32000
-mx:2000000 -Xms16m -Xmx168m -Dxindice.home="$XINDICE_HOME"
$VMPROPS -classpath “$CLASSPATH” org.apache.xindice.server.Xindice $* &



I believe -mx is the memory size for the VM (I had 2000 initially).

Any tip will be appreciated. Also, please let me know if there are any
documentation on using the JVM as a ‘NON’ embedded mode. Say you want to
start the JVM once for house keeping and shut down and start later and
use
it when you need it.



Thanks

Matt Madhavan

\

You should be able to view the memory options by running “j9 -X”. You’ll
also see the default settings. Be careful because some of the values are in
kilobytes while others are in bytes. In the past I’ve had memory problems
on QNX when running JNI code. In those cases, bumping up the OS thread
stack size helped. I’m not familiar with the product you mention, so I
can’t offer suggestions about what to try.

hth,
Charlie


“Matt Madhavan (Icon)” <mmadhavan@icon-nicholson.com> wrote in message
news:b20ce0$3o7$1@inn.qnx.com

Hi Charlie,
I am using the J9 that comes with the qnx 6.2 distribution. It is 1.5.

Thanks
Matt

“Charlie Surface” <> charlie_surface@oti.com> > wrote in message
news:b1pd7h$3v1$> 1@inn.qnx.com> …
Which version of J9 are you running?


Charlie


“Matt Madhavan (Icon)” <> mmadhavan@icon-nicholson.com> > wrote in message
news:b16sv8$2ei$> 1@inn.qnx.com> …
Hello Everyone,

I am trying run an Apache product called the xindice. It is an xml
database,
and runs with jvm 1.3. When I run it with j9, I am getting
java.lang.OutOfMemoryError.

I am using the following statement (updated/modified for j9) in
xindice’s
startup script.




j9 -bp:/usr/eclipse/ive/lib/jclMax/classes.zip -vmargs -ms:20 -jit -mo:32000
-mx:2000000 -Xms16m -Xmx168m -Dxindice.home="$XINDICE_HOME"
$VMPROPS -classpath “$CLASSPATH” org.apache.xindice.server.Xindice $*
&



I believe -mx is the memory size for the VM (I had 2000 initially).

Any tip will be appreciated. Also, please let me know if there are any
documentation on using the JVM as a ‘NON’ embedded mode. Say you want
to
start the JVM once for house keeping and shut down and start later and
use
it when you need it.



Thanks

Matt Madhavan



\