8 Replies Latest reply on Nov 23, 2011 4:20 PM by dbhausen

    error connecting to jboss-admin concole [JBoss AS 7.0.2.Final "Arc"]

    dbhausen

      I have just installed JBoss AS 7.0.2.Final "Arc". Web console in not available and command line interface throws exception but does come to the command line.

       

      tried editing jboss-admin.sh as follows but it did not help.

       

      JAVA_OPTS="$JAVA_OPTS -Xmx950m"

       

       

       

      [root@xxxxx bin]# ./jboss-admin.sh --connect

       

       

      java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory

              at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)

              at java.lang.Runtime.exec(Runtime.java:593)

              at java.lang.Runtime.exec(Runtime.java:466)

              at jline.UnixTerminal.exec(UnixTerminal.java:297)

              at jline.UnixTerminal.exec(UnixTerminal.java:282)

              at jline.UnixTerminal.stty(UnixTerminal.java:273)

              at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77)

              at jline.Terminal.setupTerminal(Terminal.java:75)

              at jline.Terminal.getTerminal(Terminal.java:26)

              at jline.ConsoleReader.<init>(ConsoleReader.java:191)

              at org.jboss.as.cli.CommandLineMain.initConsoleReader(CommandLineMain.java:529)

              at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:299)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.modules.Module.run(Module.java:272)

              at org.jboss.modules.Main.main(Main.java:313)

      Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory

              at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)

              at java.lang.ProcessImpl.start(ProcessImpl.java:65)

              at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)

              ... 17 more

      Connected to standalone controller at localhost:9999

      [standalone@localhost:9999 /]

       

      free memory while connected without change to JAVA_OPTS:

       

       

      [root@xxxxx bin]# free

                   total       used       free     shared    buffers     cached

      Mem:       2097152    1650900     446252          0          0          0

      -/+ buffers/cache:    1650900     446252

      Swap:            0          0          0

       

      free memory after closing:

       

       

      [root@xxxx bin]# free

                   total       used       free     shared    buffers     cached

      Mem:       2097152     981220    1115932          0          0          0

      -/+ buffers/cache:     981220    1115932

      Swap:            0          0          0