Set the memory available to the JVM : JVM Tool Interface « Development Class « Java






Set the memory available to the JVM

      

java -mx20m myApp // for max
java -ms20m myApp // for start

   
    
    
    
    
    
  








Related examples in the same category

1.jconsole plugin
2.This agent library can be used to track threads that wait on monitors.
3.Check the version of the interface being used
4.Track method call and return counts
5.Inject code at method calls
6.Do some very basic bytecode insertion (BCI) of class files
7.Byte Code Instrumentation (BCI)
8.How to get an easy view of the heap in terms of total object count and space used
9.Track object allocations
10.This agent library can be used to track garbage collection events
11.JVM Tool Interface agent utilities
12.Java Platform Debugger Architecture
13.Memory related
14.System memory
15.Floating Point Arithmetic
16.Logic and Integer Arithmetic
17.JVM Simulator
18.Stack memory view
19.JVM memory util
20.This class determines the version of the Java Virtual Machine.
21.Generate a listing of the most trusted certification authorities used by your JVM
22.Java version Util