jvm-arguments

How to give more memory to IntelliJ Idea 9-11

天大地大妈咪最大 提交于 2019-12-02 17:23:28
This concerns Intellij from 9 to 11. In the IDEA window On the bottom right corner I see the current memory usage, typically "224M of 254M" How do I give more memory to Idea so it may read like "224M of 512M" ? Thank you. On Mac, $IDEA_HOME/Contents/Info.plist ~: grep --context=5 Xmx /Applications/Maia-IU-94.426.app/Contents/Info.plist <string>true</string> <key>apple.awt.fullscreencapturealldisplays</key> <string>false</string> </dict> <key>VMOptions</key> <string>-Xms128m -Xmx912m -Dfile.encoding=UTF-8 -XX:MaxPermSize=250m -ea -agentlib:yjpagent=disablej2ee,disablecounts,disablealloc

Can I force the JVM to natively compile a given method?

删除回忆录丶 提交于 2019-12-02 17:07:16
I have a performance-critical method called often when my app starts up. Eventually, it gets JIT-compiled, but not after some noticeable time being run in the interpreter. Is there any way I can tell the JVM that I want this method compiled right from the start (without tweaking other internals with stuff like -XX:CompileThreshold )? The only way I know of is the -Xcomp flag, but that is not generally advisable to use. It forces immediate JIT compilation of ALL classes and methods first time they are run. The downside is that you will see a performance decrease on initial startup (due to

JVM performance tuning for large applications

故事扮演 提交于 2019-12-02 13:59:41
The default JVM parameters are not optimal for running large applications. Any insights from people who have tuned it on a real application would be helpful. We are running the application on a 32-bit windows machine, where the client JVM is used by default . We have added -server and changed the NewRatio to 1:3 (A larger young generation). Any other parameters/tuning which you have tried and found useful? [Update] The specific type of application I'm talking about is a server application that are rarely shutdown, taking at least -Xmx1024m. Also assume that the application is profiled already.

Specifying jvm arguments in ant tasks

久未见 提交于 2019-12-02 12:35:30
问题 I am specifying jvm arguments since i was getting out of heap space exception so just to avoid that i was specifying the below parameters in my ant target that is as shown below.. <junit printsummary="true" fork="yes" haltonfailure="false" failureproperty="junitsFailed" errorProperty="junitsFailed" > <jvmarg value=" -Xmx1024m -Duser.timezone=GMT0"/> </junit> but below i am getting the below exception .. that is the invalid parameters are specified 回答1: Use multiple <jvmarg> elements: <junit

How can I find the default MaxPermSize when -XX:+PrintFlagsFinal is not supported?

余生长醉 提交于 2019-12-02 09:42:33
问题 I'm working with a system where a number of jobs, implemented as Java applications, can be started simultaneously. Each job runs in a separate JVM. Some of these jobs require bigger permgen size than others. However, it is not feasible to allow all jobs to use the maximum value, as the OS memory is limited. Therefore, I want to specify -XX:MaxPermSize for every job. Currently, the jobs are running without any -XX:MaxPermSize argument, so they must be using the default value. But how can I

How can I find the default MaxPermSize when -XX:+PrintFlagsFinal is not supported?

风格不统一 提交于 2019-12-02 05:49:59
I'm working with a system where a number of jobs, implemented as Java applications, can be started simultaneously. Each job runs in a separate JVM. Some of these jobs require bigger permgen size than others. However, it is not feasible to allow all jobs to use the maximum value, as the OS memory is limited. Therefore, I want to specify -XX:MaxPermSize for every job. Currently, the jobs are running without any -XX:MaxPermSize argument, so they must be using the default value. But how can I find out what the default value is? I have seen Default values for Xmx, Xms, MaxPermSize on non-server

How can I OOM sooner in excessive GC? [duplicate]

我是研究僧i 提交于 2019-12-02 05:28:06
问题 This question already has an answer here : Adjusting GC Overhead Exceeded parameters (1 answer) Closed 2 years ago . Occasionally my JVM runs out of memory, but rather then OOMing which I can recover from (or heapDumpOnOOM and debug) it tends to thrash in GC for hours before throwing out of memory. This is essentially the same as the (unanswered) question: How can I configure the Java GC Overhead Limit? But I suspect the answer is you can't tune the 98%/2% thresholds, so I'm asking of any way

Can a java application allocate more memory than specified by jvm startup parameters?

£可爱£侵袭症+ 提交于 2019-12-02 04:38:20
问题 Assuming a java application is not using any native libraries. Is there a way that it anyway can allocate more memory than specified by jvm startup parameters? Asking the other way round: Can I rely that a java application will never allocate more memory than restricted by JVM startup parameters? 回答1: Yes, it can. It cannot allocate more memory on the JVM heap, but it can allocate native memory by using ByteBuffer.allocateDirect or by calling to custom native code. 回答2: Indeed, you always

how to change jvm parameters on the Microsoft Azure website

江枫思渺然 提交于 2019-12-02 02:50:16
I created a java-based website on Azure, and selected tomcat as container when used "CUSTOM CREATE", then there is an empty website ready and I can upload WAR files using ftp but not able to touch tomcat files. I need change the heap size of JVM, how to do that? please see http://azure.microsoft.com/en-us/documentation/articles/web-sites-java-custom-upload/ - see section "Tomcat". You could either upload your own tomcat as mentioned in this link OR you can just configure httpPlatform section in your web.config to override the JAVA_OPTS with any jvm parameter you want. Thanks. 来源: https:/

Specify options for the jvm launched by pyspark

自作多情 提交于 2019-12-02 02:24:16
How /where are the jvm options used by the pyspark script when launching the jvm it connects to specified? I am specifically interested in specifying jvm debugging options e.g. -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 Thanks. pyspark uses the bin/spark-class script to start the client that you see running in your terminal / console. You can just append whatever options necessary to JAVA_OPTS : JAVA_OPTS="$JAVA_OPTS -Xmx=2g -Xms=1g -agentlib:jdwp=transport=dt_socket,server=y..." 来源: https://stackoverflow.com/questions/29478112/specify-options-for-the-jvm-launched-by