0

In RAD WebSphere, I want to add the some arguments to the JVM, in order to display some information about the garbage collection. I notice that this action is in the Administration Console-->Server-->Application Server-->Server1-->Java and Process Management-->Process Definition-->Java Virtual Machine-->Generic JVM Argument.

Normally in Oracle JDK, there are arguments that we can add like: -Xms1000m -Xmx1000m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:MaxNewSize=500m -XX:NewSize=500m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/home/sherpa/Sherpa/Server/log/gc.log -XX:+HeapDumpOnOutOfMemoryError.

I tried to add these arguments in it, but it seems that it doesn't work with these arguments.

So is there some specific arguments that can only be used in RAD WebSphere? What arguments can we use in RAD?

I am looking forward to your opinions!

AlBlue
  • 23,254
  • 14
  • 71
  • 91
zhangde
  • 74
  • 4
  • this might help you: http://stackoverflow.com/questions/10639322/how-can-i-specify-the-default-jvm-arguments-for-programs-i-run-from-eclipse – Sampada Apr 27 '16 at 13:13

2 Answers2

1

If you're running Websphere application server, you'll be using the IBM JVM.

You can get additional information about garbage collection using the -verbose:gc option.

You can find more information about the output produced by this option on this Knowledge Center page.

Azquelt
  • 1,380
  • 10
  • 15
  • As I side note, I'm not sure what you meant by "RAD Websphere". There are two products, RAD which is an eclipse-based IDE and Websphere Application Server which is a Java application server. I've assumed you're using both together and want to set the garbage collection options on the JVM for Websphere application server. – Azquelt Apr 27 '16 at 09:14
  • I think my tool is RAD with WebSphere on it. When I look at the product information, it is: IBM Rational® Application Developer™ for WebSphere® Software. – zhangde Apr 27 '16 at 09:38
1

RAD is just your developing environment, an IDE. You can have WebSphere Application Server runtime as test environment installed together with RAD, but it is separate server, it just happens to be already integrated in the Servers View.

So in general all rules related to WebSphere apply. WebSphere runs IBM JVM, so if you want to enable verbose gc check the WebSphere infocenter, and do not provide Oracle JVM params as they simply dont work in IBM JVM :-)

So for WebSphere you should enable it via admin console in the JVM settings page, just call it via browser, but it is available to invoke it from RAD in servers view also.

For details check:

Gas
  • 17,601
  • 4
  • 46
  • 93