2 Replies Latest reply on Oct 12, 2012 2:21 AM by mike just

    Can not shut down JBoss in runtime

    mike just Master

      The situation is I can not shut down jboss with below error by command "jboss-cli.bat --connect command=:shutdown" by Runtime.getRuntime().exec() in java code.

       

      11:14:57,253 INFO  [stdout] (Thread-131_out) Error occurred during initialization of VM
      
      11:14:57,330 INFO  [stdout] (Thread-131_out) Could not reserve enough space for object heap
      
      

       

      But the same command "jboss-cli.bat --connect command=:shutdown" shuts down the same server successfully when executing it manually in jboss bin directory.

       

      What could be the reason?