Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/10/2011, 03:56
jd_zuri
 
Fecha de Ingreso: febrero-2008
Mensajes: 241
Antigüedad: 16 años, 2 meses
Puntos: 1
Pregunta Unrecognized VM option 'OnOutOfMemoryError=kill -9 %p'

Cuando ejecuto el siguiente comando:

java -classpath .:target/lib/prueba-1.6.jar -DCONF_FILE=config1.xml -Xms16m -Xmx256m -XX:OnOutOfMemoryError="kill -9 %p" -DLIB_DIR=lib/com.prueba.init.Run

el cual funciona correctamente cuando quito la opcionOnOutOfMemoryError, me da el siguiente error:

Unrecognized VM option 'OnOutOfMemoryError=kill -9 %p'
Could not create the Java virtual machine.

La version de java es:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)


y se supone que esta opción está disponoble desde el update 7 de la version 1.5, ¿alguien sabe cual puede ser el problema?

un saludo y gracias de antemano.