How to install memory for a virtual machine in IntelliJ? Should I set Tomcat memory options separately?

I am benchmarking and I want to know how to install memory for both IntelliJ and Tomcat.

In the lower right corner, I see 98M 147M in IntelliJ, what is it?

How do i know if i allocated tomcat enough memory?

+8
java intellij-idea tomcat jvm
Dec 17 '11 at 3:12
source share
2 answers

Set memory options for IntelliJ itself in the virtual machine options file.

  • OS X: Contents/info.plist (built into the application directory)
  • Linux: bin/idea.vmoptions
  • Windows: (install dir/)bin/idea.exe.vmoptions e.g. C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 12.1.1\bin\idea.exe.vmoptions

As for IntelliJ 12, for OS X:

  • The file /Applications/IntelliJ IDEA.app/bin/idea.vmoptions should be copied to ~/Library/Preferences/IntelliJIdeaXX/idea.vmoptions

This corresponds to the DOC-197 JetBrains associated with CrazyCoder.

The memory indicator shows the used / maximum memory.

You know, if you allocated enough memory to the TS, if it did not end, and / or was not caused by hiccups due to the large GC, and / or not thrash swapping. Tomcat memory settings are configured in the Tomcat startup configuration, where "VM Settings" is specified.

+19
Dec 17 '11 at 3:27
source share

Some problems for installing memory: Therefore, I use these settings for my vm:

 -Xms768m -Xmx768m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=64m -server -XX:NewSize=128m -XX:+UseParNewGC -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 
+2
Jan 11 '12 at 8:10
source share



All Articles