Forums Register Login

What is -server and -client option?

+Pie Number of slices to send: Send
Hello,

I heard you can run a java program using -server and -client option. What are these and what are the uses?

Thanks,
Guru
+Pie Number of slices to send: Send
The following are the command line options that you can use with the java command:

___________________________________________________________________________

-hotspot

-cp -classpath <directories and zip/jar files separated by ;>

-D<name>=<value>

-verbose[:class|gc|jni]

-version

-showversion

-? -help

-X
___________________________________________________________________________

I don't think that there are options -server and -client.
+Pie Number of slices to send: Send
The ones that I have posted above are the Standard options. Even if you look at the non-standard options, the ones I have included below, you still don't have the -server and -client options.

___________________________________________________________________________

-Xmixed

-Xint

-Xbootclasspath:<directories and zip/jar files separated by ;>

-Xbootclasspath/a:<directories and zip/jar files separated by ;>

-Xbootclasspath/p:<directories and zip/jar files separated by ;>

-Xnoclassgc

-Xincgc

-Xbatch

-Xms<size>

-Xmx<size>

-Xss<size>

-Xprof

-Xrunhprof[:help]|[:<option>=<value>, ...]

-Xdebug

-Xfuture

-Xrs
___________________________________________________________________________
+Pie Number of slices to send: Send
What JRE do you have installed, Vijay?
+Pie Number of slices to send: Send
 

Originally posted by Darin Niard:
What JRE do you have installed, Vijay?



My JDK must be older than yours...thats why I did not get those options

+Pie Number of slices to send: Send
The Java application launcher tool is documented at
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html

Concerning the use/meaning of -server and -client switches...

If I recall correctly, using the -server switch typically causes the JVM to start more slowly, and then run in a more efficient manner once started. The -client switch typically causes the JVM to start more quickly, skipping some of the optimizations used by the -server switch.
I don't like that guy. The tiny ad agrees with me.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1230 times.
Similar Threads
client server & web server
Running a EJB program from client?
What is true about SSL&#65311;
Reconnect to server
Questions on HotSpot
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:46:07.