Max JVM Memory

I wanted to know what is the maximum value that one can give to the JVM( -Xmx command) for jdk1.2.2

I have Server application that I want to start on a 16GB SUN Solaris machine if the max memory as I understand is 2GB(for the -Xmx command), then how do I utilize the remaining 14GB for maximum performance>

[336 byte] By [vivmenon] at [2007-9-26 13:43:45]
# 1

Latest news is that there's a jvm for solaris on Sparc that can go to 4 GB.

Comsider splitting up your application into several jvm's, each of which uses no more than 2 or 4 GB and possibly far less. This is easy to do if you are handling multiple tasks on behalf of clients using an application server that supports load balancing, since the application server will do the work for you.

On the other hand if you are making computations on large datasets then you will have to to the split yourself.

tychoS at 2007-7-2 14:31:42 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
>Latest news is that there's a jvm for solaris on Sparc that can go to 4 GB.1.4?1.4 is beta so probably shouldn't be used in production.
jschell at 2007-7-2 14:31:42 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

Yes it's in 1.4, and yes it's beta.

What kind of task do you have that requires so much memory? Are you handling lots of concurrent users, doing calculations or something else?

Are you sure your application can use all that memory in an effective way given the level of memory throughput of todays hardware? If in doubt, consider splitting the task into several tasks each with only a part of the memory footprint, and run them on seperate machines or seperate CPU's on a big Sparc.

tychoS at 2007-7-2 14:31:42 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4

> Yes it's in 1.4, and yes it's beta.

>

> What kind of task do you have that requires so much

> memory? Are you handling lots of concurrent users,

> doing calculations or something else?

>

it a message oriented middleware, the application works with -Xmx set to 500, with this we r capable of handling 1500 clients with around 25000 messages per sec. I am testing this performance with a 16GB machine and so want to use all its hardware to achieve a higher rate of msgs/sec

vivmenon at 2007-7-2 14:31:42 > top of Java-index,Java HotSpot Virtual Machine,Specifications...