Re: Start Application with custom Java-Version

Pascal Robert <[email protected]> Fri, 27 May 2011 09:47:20 -0400
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
Le 2011-05-27 =E0 09:37, Peter M=FCller a =E9crit :

> Hello to all,
>=20
> i want to deploy my WebObjects/Wonder-Application on a customers =
server. My WebObjects-Application is based and built with Java 1.5. =
Because I have to use some frameworks, which have problems with Java 1.6 =
and fill server's memory until server is down.

My guess is that the server have less than 3 GB of memory? I think the =
difference is that an app on Java 1.5 32 bits will use 64 GB of memory =
max unless you change those values, but with Java 1.6, the maximum value =
is 1.5 GB, so if the server don't have memory, yeah it can fill out =
memory and the system might start swapping like a mad man, and good luck =
trying to access the server when heavy swapping is happening.

> On my own server, i've only Java 1.5, so there is no problem. Because =
only one version of java, application is really startet with it.
>=20
> On customers server, I've the problem that there are now 2 java =
versions, java 1.5 for me, and java 1.6 for another software. Java 1.6 =
is default, because the other software can't handle it in another way.
>=20
> Is there a way to tell my application to use java 1.5? because now =
there's the problem, that my application runs with default java.

Before trying to use Java 1.5, you should use the -Xmx parameter to =
limit the number of RAM the app can use.

Is this a OS X server?=