title: java.lang.OutOfMemoryError: requested 16 bytes for CHeapObj-new. Out of swap space?
body: <p>I got this error on trying to get the Java search process UP(start a java process). I am setting the address space using the <code>RLIMIT_AS</code>.</p>
  
  <p>Please help me to get past this error.</p>
  
  <p>I have doubts about the VM Arguements. (See below).
  Is there any way to get past this issue without changing the configurations. (VM Arguements)</p>
  
  <blockquote>
    <p>A fatal error has been detected by the Java Runtime Environment:</p>
    
    <p>java.lang.OutOfMemoryError: requested 16 bytes for CHeapObj-new.
    Out of swap space?</p>
    
    <p>Internal Error (allocation.inline.hpp:39), pid=16994,
    tid=1097390400
      Error: CHeapObj-new</p>
    
    <p>JRE version: 6.0_21-b06
     Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode
    linux-amd64 )
     If you would like to submit a bug report, please visit:
       <a href="http://java.sun.com/webapps/bugreport/crash.jsp" rel="nofollow">http://java.sun.com/webapps/bugreport/crash.jsp</a></p>
    
    <hr>
    
    <p>---------------  T H R E A D  ---------------</p>
    
    <p>Current thread (0x00000000489a7800): 
    JavaThread "main" [_thread_in_vm,
    id=17043,
    stack(0x000000004158d000,0x000000004168e000)]</p>
    
    <p>Stack:
    [0x000000004158d000,0x000000004168e000],
    sp=0x00000000416897f0,  free
    space=3f10000000000000018k</p>
    
    <p>VM state:not at safepoint (normal
    execution)</p>
    
    <p>VM Mutex/Monitor currently owned by a
    thread: None</p>
    
    <p>Heap  PSYoungGen      total 38208K,
    used 24989K [0x00002aaae8f80000,
    0x00002aaaeba20000,
    0x00002aab03a20000)   eden space
    32768K, 76% used
    [0x00002aaae8f80000,0x00002aaaea7e7518,0x00002aaaeaf80000)
    from space 5440K, 0% used
    [0x00002aaaeb4d0000,0x00002aaaeb4d0000,0x00002aaaeba20000)
    to   space 5440K, 0% used
    [0x00002aaaeaf80000,0x00002aaaeaf80000,0x00002aaaeb4d0000)
    PSOldGen        total 87424K, used 0K
    [0x00002aaab3a20000,
    0x00002aaab8f80000,
    0x00002aaae8f80000)   object space
    87424K, 0% used
    [0x00002aaab3a20000,0x00002aaab3a20000,0x00002aaab8f80000)
    PSPermGen       total 21248K, used
    10141K [0x00002aaaae620000,
    0x00002aaaafae0000,
    0x00002aaab3a20000)   object space
    21248K, 47% used
    [0x00002aaaae620000,0x00002aaaaf007410,0x00002aaaafae0000)</p>
    
    <p>VM Arguments: jvm_args: -Xms128M
    -Xmx1280M -D.config=path -D.home=path1 -D .logfile=path2 java_command: com. .base.Server Launcher Type:
    SUN_STANDARD</p>
    
    <p>OS:CentOS release 5.5 (Final)</p>
    
    <p>uname:Linux 2.6.18-194.el5 #1 SMP Fri
    Apr 2 14:58:14 EDT 2010 x86_64
    libc:glibc 2.5 NPTL 2.5 rlimit: STACK
    10240k, CORE 1000001k, NPROC 24576,
    NOFILE 4096, AS 1835008k load
    average:1.87 0.45 0.22</p>
    
    <p>CPU:total 2 (1 cores per cpu, 1
    threads per core) family 6 model 46
    stepping 6, cmov, cx8, fxsr, mmx, sse,
    sse2, sse3, ssse3, sse4.1, sse4.2,
    popcnt</p>
    
    <p>Memory: 4k page, physical
    2959608k(2057540k free), swap
    4096532k(4096532k free)</p>
    
    <p>vm_info: Java HotSpot(TM) 64-Bit
    Server VM (17.0-b16) for linux-amd64
    JRE (1.6.0_21-b06), built on Jun 22
    2010 01:10:00 by "java_re" with gcc
    3.2.2 (SuSE Linux)</p>
    
    <p>time: Tue Mar 22 03:08:27 2011 elapsed
    time: 5 seconds</p>
  </blockquote>