java.lang.OutOfMemoryError: PermGen space

Jenkins JIRA | Ryan Wightman | 4 years ago
  1. 0

    When the master attempts to connect to the OS X slave via SSH, it will establish the SSH connection, but fails with OutOfMemoryError during remoting communication. [09/20/12 11:45:56] [SSH] Opening SSH connection to mavis:22. [09/20/12 11:45:56] [SSH] Authenticating as jenkins with E:\Jenkins\id_dsa. [09/20/12 11:45:57] [SSH] Authentication successful. [09/20/12 11:45:58] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=1571527887 GROUPS=() HOME=/Users/jenkins HOSTNAME=mavis.local HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin12 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin12 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=71651 PS4='+ ' PWD=/Users/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.234.1.39 39636 22' SSH_CONNECTION='10.234.1.39 39636 10.234.1.24 22' TERM=dumb TMPDIR=/var/folders/vp/nsslsj0x1fv8j8cw_3mkmw3dftq76g/T/ UID=1571527887 USER=jenkins _=bash [09/20/12 11:45:58] [SSH] Checking java version of java [09/20/12 11:45:58] [SSH] java -version returned 1.6.0_33. [09/20/12 11:45:58] [SSH] Starting sftp client. [09/20/12 11:45:58] [SSH] Copying latest slave.jar... [09/20/12 11:45:58] [SSH] Copied 278,201 bytes. [09/20/12 11:45:58] [SSH] Starting slave process: cd '/var/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(Unknown Source) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source) at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source) at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source) at java.io.ObjectStreamClass.access$1500(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) [09/20/12 11:45:59] [SSH] Connection closed. ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/20/12 11:45:59] slave agent was terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 4 years ago | Ryan Wightman
    java.lang.OutOfMemoryError: PermGen space
  2. 0

    When the master attempts to connect to the OS X slave via SSH, it will establish the SSH connection, but fails with OutOfMemoryError during remoting communication. [09/20/12 11:45:56] [SSH] Opening SSH connection to mavis:22. [09/20/12 11:45:56] [SSH] Authenticating as jenkins with E:\Jenkins\id_dsa. [09/20/12 11:45:57] [SSH] Authentication successful. [09/20/12 11:45:58] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=1571527887 GROUPS=() HOME=/Users/jenkins HOSTNAME=mavis.local HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin12 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin12 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=71651 PS4='+ ' PWD=/Users/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.234.1.39 39636 22' SSH_CONNECTION='10.234.1.39 39636 10.234.1.24 22' TERM=dumb TMPDIR=/var/folders/vp/nsslsj0x1fv8j8cw_3mkmw3dftq76g/T/ UID=1571527887 USER=jenkins _=bash [09/20/12 11:45:58] [SSH] Checking java version of java [09/20/12 11:45:58] [SSH] java -version returned 1.6.0_33. [09/20/12 11:45:58] [SSH] Starting sftp client. [09/20/12 11:45:58] [SSH] Copying latest slave.jar... [09/20/12 11:45:58] [SSH] Copied 278,201 bytes. [09/20/12 11:45:58] [SSH] Starting slave process: cd '/var/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(Unknown Source) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source) at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source) at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source) at java.io.ObjectStreamClass.access$1500(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) [09/20/12 11:45:59] [SSH] Connection closed. ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/20/12 11:45:59] slave agent was terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 4 years ago | Ryan Wightman
    java.lang.OutOfMemoryError: PermGen space
  3. 0

    OutOfMemoryException during slave connection. When connecting slave through SSH: [09/13/12 21:56:30] [SSH] Checking java version of java [09/13/12 21:56:30] [SSH] java -version returned 1.6.0_24. [09/13/12 21:56:30] [SSH] Starting sftp client. [09/13/12 21:56:30] [SSH] Copying latest slave.jar... [09/13/12 21:56:30] [SSH] Copied 278,201 bytes. [09/13/12 21:56:30] [SSH] Starting slave process: cd '/dev/shm/cp_hudson' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: getNewTla at java.util.HashMap.addEntry(HashMap.java:937) at java.util.HashMap.put(HashMap.java:477) at java.util.HashSet.add(HashSet.java:200) at java.io.ObjectStreamClass$FieldReflector.<init>(ObjectStreamClass.java:1852) at java.io.ObjectStreamClass.getReflector(Unknown Source) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:459) at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: Connection terminated [09/13/12 21:56:32] [SSH] Connection closed. java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/13/12 21:56:32] slave agent was terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) When accepting connection from JNLP client: INFO: Accepted connection #10 from /xx.xx.xx.82:2652 Exception in thread "TCP slave agent connection handler #10 with /xx.xx.xx.82:2652" java.lang.OutOfMemoryError: getNewTla at java.util.HashMap.addEntry(HashMap.java:937) at java.util.HashMap.put(HashMap.java:477) at java.util.HashSet.add(HashSet.java:200) at java.io.ObjectStreamClass$FieldReflector.<init>(ObjectStreamClass.java:1852) at java.io.ObjectStreamClass.getReflector(Unknown Source) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:459) at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 4 years ago | Krzysztof Malinowski
    java.lang.OutOfMemoryError: getNewTla
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemoryException during slave connection. When connecting slave through SSH: [09/13/12 21:56:30] [SSH] Checking java version of java [09/13/12 21:56:30] [SSH] java -version returned 1.6.0_24. [09/13/12 21:56:30] [SSH] Starting sftp client. [09/13/12 21:56:30] [SSH] Copying latest slave.jar... [09/13/12 21:56:30] [SSH] Copied 278,201 bytes. [09/13/12 21:56:30] [SSH] Starting slave process: cd '/dev/shm/cp_hudson' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: getNewTla at java.util.HashMap.addEntry(HashMap.java:937) at java.util.HashMap.put(HashMap.java:477) at java.util.HashSet.add(HashSet.java:200) at java.io.ObjectStreamClass$FieldReflector.<init>(ObjectStreamClass.java:1852) at java.io.ObjectStreamClass.getReflector(Unknown Source) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:459) at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: Connection terminated [09/13/12 21:56:32] [SSH] Connection closed. java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/13/12 21:56:32] slave agent was terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) When accepting connection from JNLP client: INFO: Accepted connection #10 from /xx.xx.xx.82:2652 Exception in thread "TCP slave agent connection handler #10 with /xx.xx.xx.82:2652" java.lang.OutOfMemoryError: getNewTla at java.util.HashMap.addEntry(HashMap.java:937) at java.util.HashMap.put(HashMap.java:477) at java.util.HashSet.add(HashSet.java:200) at java.io.ObjectStreamClass$FieldReflector.<init>(ObjectStreamClass.java:1852) at java.io.ObjectStreamClass.getReflector(Unknown Source) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:459) at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 4 years ago | Krzysztof Malinowski
    java.lang.OutOfMemoryError: getNewTla
  6. 0

    Huge Lag with mcMMO Since the Recent Release.

    GitHub | 4 years ago | dddeeefff
    java.lang.OutOfMemoryError: PermGen space

  1. tyson925 4 times, last 1 month ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    PermGen space

    at java.lang.Class.getDeclaredConstructors0()
  2. Java RT
    ObjectInputStream.readObject
    1. java.lang.Class.getDeclaredConstructors0(Native Method)
    2. java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    3. java.lang.Class.getConstructor0(Unknown Source)
    4. java.lang.Class.newInstance0(Unknown Source)
    5. java.lang.Class.newInstance(Unknown Source)
    6. sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
    7. java.security.AccessController.doPrivileged(Native Method)
    8. sun.reflect.MethodAccessorGenerator.generate(Unknown Source)
    9. sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source)
    10. sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source)
    11. java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source)
    12. java.io.ObjectStreamClass.access$1500(Unknown Source)
    13. java.io.ObjectStreamClass$2.run(Unknown Source)
    14. java.security.AccessController.doPrivileged(Native Method)
    15. java.io.ObjectStreamClass.<init>(Unknown Source)
    16. java.io.ObjectStreamClass.lookup(Unknown Source)
    17. java.io.ObjectStreamClass.initNonProxy(Unknown Source)
    18. java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    19. java.io.ObjectInputStream.readClassDesc(Unknown Source)
    20. java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    21. java.io.ObjectInputStream.readObject0(Unknown Source)
    22. java.io.ObjectInputStream.readObject(Unknown Source)
    22 frames
  3. Hudson :: Remoting Layer
    SynchronousCommandTransport$ReaderThread.run
    1. hudson.remoting.Command.readFrom(Command.java:90)
    2. hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
    3. hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    3 frames