`
tapestry
  • 浏览: 188763 次
社区版块
存档分类
最新评论

Using the Server JVM

阅读更多
(From http://kano.net/javabench/#servervm)
Every form of Sun's Java runtime comes with both the "client VM" and the
"server VM." Unfortunately, Java applications and applets run by default
in the client VM. The Server VM is much faster than the Client VM, but
it has the downside of taking around 10% longer to start up, and it uses
more memory.

There are two ways to run Java applications with the server VM:

1. When launching a Java application from the command line, use java
-server [arguments...] instead of java [arguments...]. For example, use
java -server -jar beanshell.jar.
2. Modify the jvm.cfg file in your Java installation. (It's a text
file, so you can use Notepad or Emacs to edit it.) This is located in
C:\Program Files\Java\j2reXXX\lib\i386\ on Windows,
/usr/java/j2reXXX/lib/i386/ on Linux. You will see two lines:

-client KNOWN
-server KNOWN

You should change them to:

-server KNOWN
-client KNOWN

This change will cause the server VM to be run for all
applications, unless they are run with the -client argument.
分享到:
评论

相关推荐

    Java_for_the_Web_with_Servlets

    - **Benefits of Servlets**: Servlets offer several advantages over traditional CGI scripts, including improved performance due to the Java virtual machine (JVM), easy integration with other Java ...

    CommonsWare.The.Busy.Coders.Guide.to.Android.Development.Version.8.2.2017

    Using the Camera via 3rd-Party Apps Working Directly with the Camera Media Routes Supporting External Displays Google Cast and Chromecast The “Ten-Foot UI” Putting the TVs All Together: Decktastic ...

    Mastering Spring Cloud-Packt Publishing(2018)

    You will learn to configure the Spring Cloud server and run the Eureka server to enable service registration and discovery. Then you will learn about techniques related to load balancing and circuit ...

    Android代码-kxhtml-isomorphic

    compiled to JVM bytecode on the server side and to JS for the browser. Most of the libraries used by the application are also multiplatform. The sample uses the following technologies: ktor as the ...

    Pro+Spring+Dynamic+Modules+for+OSGi+Service+Platforms

    I first learned about OSGi when the Eclipse IDE started using it in its plug-in architecture. At the time, the versioning and modularity features seemed nicer “for an IDE” than what was available ...

    java7帮助文档

    Java Virtual Machine Support for Non-Java Languages: Java SE 7 introduces a new JVM instruction that simplifies the implementation of dynamically typed programming languages on the JVM. Garbage-First...

    jdk-9.0.1_doc-all 最新版

    Defines the rmic compiler for generating stubs and skeletons using the Java Remote Method Protocol (JRMP) and stubs and tie class files (IIOP protocol) for remote objects. jdk.scripting.nashorn ...

    restful restful所需要的jar包

    * Deployment as native services is possible and illustrated using the powerful Java Service Wrapper. * Extensive integration with popular Spring IoC framework. * Deployment to Oracle 11g embedded ...

    enterprise java microservices

    You'll discover ecosystem components like Netflix Hystrix for fault tolerance and master the Just enough Application Server (JeAS) approach. To ensure smooth operations, you'll also examine ...

    Programming Kotlin-Packt

    Programming Kotlin is a book by Stephen Samuel and Stefan Bocutiu about using Kotlin on the JVM. It covers all aspects of the language with particular focus on server side development. It is aimed at ...

    tomcat-5.5.23

    temp - Directory used by the JVM for temporary files (java.io.tmpdir) <br>If you do not pass the "-Dcatalina.base=$CATALINA_BASE" argument to the startup command, $CATALINA_BASE will default to ...

    jdk1.8-windows版64位

    7. **Type Inference for Generic Instance Creation (Diamond Operator):** With JDK 1.8, you can omit type arguments when creating generic objects using the diamond operator `<>`. The compiler infers the...

    JProfiler Helper

    This section delves into the inner workings of JProfiler, explaining how it interacts with the JVM (Java Virtual Machine) to collect profiling data. Understanding this background information is ...

    AkkaScala.pdf

    **Akka** is a toolkit and runtime designed for building highly concurrent, distributed, and fault-tolerant systems on the Java Virtual Machine (JVM). It leverages the actor model of computation, ...

    ElasticSearch启动之后自己Killed解决方案.docx

    OpenJDK64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads= ...

    tomcat 环境配置及问题处理

    - `Using JVM:“D:\Program Files\Java\jdk1.6.0_20\jre\bin\server\jvm.dll”` 3. **注意事项**: - 确保`JAVA_HOME`、`CATALINA_HOME`、`CATALINA_BASE`和`TOMCAT_HOME`等环境变量设置正确无误。 - 在安装...

    Spring.Boot.in.Action.2015.12.pdf

    With the jVM as our bedrock, we looked for a framework that would give us rapid velocity and steadfast operationalization out of the box. We zeroed in on Spring Boot Spring Boot makes it effortless to...

    jrebel6.4.3破解独立java程序可用版本

    2016-07-13 11:42:59 JRebel: WARN You are running JRebel using the -javaagent option on a system where -agentpath is supported. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ################...

Global site tag (gtag.js) - Google Analytics