0 Replies Latest reply: Jun 12, 2014 4:00 PM by user7751497 RSS

    Problem with java on RH6

    user7751497

      Hi,when I launch a java command, it gives me an memory allocation error.

       

      [root@xxxxxx ~]# cat /proc/version

      Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013

       

      [root@xxxxxx /]# java -version

      Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000758c00000, 176160768, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)

      Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000000060a400000, 350224384, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)

      Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fb3e4200000, 266338304, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)

      java version "1.7.0_45"

      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

       

      however, if you launch the java command, specifying a low heap size, it does not give me error:

       

      [root@xxxxxx /]# java -Xmx102M -version

      java version "1.7.0_45"

      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

       

      but, just get up even slightly, the error returns, even if in reduced form

       

      [root@xxxxxx /]# java -Xmx103M -version

      Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f4600000, 23068672, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)

      java version "1.7.0_45"

      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

       

      could you help me?

      Thanks!