Rahul
Rahul

Reputation: 57

Need to check MaxPermSize : Unrecognized VM option

How do I check maxpermsize from command line? Getting error unrecorgnized VM options. Version is below

D:\apps\Tomcat\bin>java -XX:+PrintFlagsFinal
Unrecognized VM option '+PrintFlagsFinal'
Could not create the Java virtual machine.

D:\apps\Tomcat\bin>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)

Upvotes: 6

Views: 2306

Answers (2)

milan
milan

Reputation: 2515

You could use a debugger to inspect the actual value:

gdb -q java -ex run -ex "print MaxPermSize" -ex quit

Upvotes: 0

M A
M A

Reputation: 72884

The VM option is not supported in your current JVM version. From this article, it seems available in Java 6u23.

Upvotes: 1

Related Questions