you can install below plugin and see where your memory is going..

https://wiki.jenkins-ci.org/display/JENKINS/Monitoring

then accordingly you can change your memory allocation.
There need to be a balance, you just cant keep on increasing heap size. 

On Friday, December 7, 2012 4:09:52 PM UTC+5:30, Capfo wrote:
>
> now i have 3 g of RAM but i have the same probleme :(
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError: PermGen space
>       at java.lang.ClassLoader.defineClass1(Native Method)
>
>
>
> 2012/12/7 El alaoui Mohamed Reda <infore...@gmail.com <javascript:>>
>
>> yes after applying the recommended setting
>>
>>
>> 2012/12/7 Gábor Garami <gabor....@hron.me <javascript:>>
>>
>>> After you applied the recommended settings?
>>>
>>> Garami Gábor
>>> gabor....@hron.me <javascript:>
>>> Skype: hron84
>>> Tel: +36 20 235 9621
>>>
>>> Sent from my T-Mobile G2
>>> Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.
>>> 2012.12.06. 17:44, "El alaoui Mohamed Reda" 
>>> <infore...@gmail.com<javascript:>> 
>>> ezt írta:
>>>
>>>  on local it's okey but in JEKINS also the same problem :(
>>>>
>>>> 2012/12/6 Jeff Williams <je...@wherethebitsroam.com <javascript:>>
>>>>
>>>>> For your local build, write:
>>>>>
>>>>> export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=512m'
>>>>>
>>>>> then run the build as normal (again, check the numbers for your 
>>>>> environment)
>>>>>
>>>>> For jenkins, follow my instructions below.
>>>>>
>>>>> Jeff
>>>>>
>>>>> On Dec 6, 2012, at 3:52 PM, El alaoui Mohamed Reda wrote:
>>>>>
>>>>> non i have the same problem also :( in jenkins and in the local Build 
>>>>> in the directory of project 
>>>>>
>>>>> 2012/12/6 Jeff Williams <je...@wherethebitsroam.com <javascript:>>
>>>>>
>>>>>> You are running out of PermGen space!
>>>>>>
>>>>>> try adding something like:
>>>>>>
>>>>>> -Xmx1024m -XX:MaxPermSize=512m
>>>>>>
>>>>>> to the Maven Project Configuration on the Manage Jenkins > Configure 
>>>>>> System page
>>>>>>
>>>>>> <PastedGraphic-5.png>
>>>>>> Where:
>>>>>> -Xmx give the maximum heap size, and
>>>>>> -XX:MaxPermSize increases the size of the PermGen space
>>>>>>
>>>>>> You can look up and configure these as applicable for your environment
>>>>>>
>>>>>> Jeff
>>>>>>
>>>>>>
>>>>>> On Dec 6, 2012, at 3:16 PM, japinder gill wrote:
>>>>>>
>>>>>> whts the RAM size of your server?
>>>>>> may be you can chk by setting heap size.
>>>>>>
>>>>>> On Thursday, December 6, 2012 7:01:05 PM UTC+5:30, Capfo wrote:
>>>>>>>
>>>>>>> hello
>>>>>>>
>>>>>>> i have a probleme with JENKINS it's a new installation when i do 
>>>>>>> some test with a meven code source 2.2.1 and 2.2.2
>>>>>>>
>>>>>>> when i make mvn clean install -Dmaven.test.skip=true the Build it's 
>>>>>>> OK
>>>>>>>
>>>>>>> but when i make : mvn clean install i have this error :
>>>>>>>
>>>>>>> The same Error in local Build and in Jenkins
>>>>>>>
>>>>>>> thnks
>>>>>>>
>>>>>>> ERROR] BUILD FAILURE[INFO] 
>>>>>>> ------------------------------**------------------------------**------------
>>>>>>> [INFO] Compilation failure
>>>>>>> Failure executing javac, but could not parse the error:
>>>>>>>
>>>>>>>
>>>>>>> The system is out of resources.
>>>>>>> Consult the following stack trace for details.
>>>>>>> java.lang.OutOfMemoryError: PermGen space
>>>>>>>         at java.lang.ClassLoader.**defineClass1(Native Method)
>>>>>>>         at 
>>>>>>> java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631)
>>>>>>>         at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615)
>>>>>>>         at 
>>>>>>> java.security.**SecureClassLoader.defineClass(**SecureClassLoader.java:141)
>>>>>>>         at 
>>>>>>> java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283)
>>>>>>>         at 
>>>>>>> java.net.URLClassLoader.**access$000(URLClassLoader.**java:58)
>>>>>>>         at java.net.URLClassLoader$1.run(**URLClassLoader.java:197)
>>>>>>>         at java.security.**AccessController.doPrivileged(**Native 
>>>>>>> Method)
>>>>>>>         at 
>>>>>>> java.net.URLClassLoader.**findClass(URLClassLoader.java:**190)
>>>>>>>         at 
>>>>>>> org.codehaus.plexus.compiler.**javac.IsolatedClassLoader.**loadClass(IsolatedClassLoader.**java:56)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.util.**DefaultFileManager$**ZipFileIndexArchive.**getFileObject(**DefaultFileManager.java:1656)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.util.**DefaultFileManager.**listDirectory(**DefaultFileManager.java:333)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.util.**DefaultFileManager.list(**DefaultFileManager.java:852)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.jvm.**ClassReader.fillIn(**ClassReader.java:2123)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.jvm.**ClassReader.complete(**ClassReader.java:1781)
>>>>>>>         at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.comp.**MemberEnter.visitTopLevel(**MemberEnter.java:495)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.tree.**JCTree$JCCompilationUnit.**accept(JCTree.java:446)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.comp.**MemberEnter.memberEnter(**MemberEnter.java:387)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.comp.**MemberEnter.complete(**MemberEnter.java:819)
>>>>>>>         at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.code.**Symbol$ClassSymbol.complete(**Symbol.java:763)
>>>>>>>         at com.sun.tools.javac.comp.**Enter.complete(Enter.java:464)
>>>>>>>         at com.sun.tools.javac.comp.**Enter.main(Enter.java:442)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.main.**JavaCompiler.enterTrees(**JavaCompiler.java:819)
>>>>>>>         at 
>>>>>>> com.sun.tools.javac.main.**JavaCompiler.compile(**JavaCompiler.java:727)
>>>>>>>         at com.sun.tools.javac.main.Main.**compile(Main.java:353)
>>>>>>>         at com.sun.tools.javac.main.Main.**compile(Main.java:279)
>>>>>>>         at com.sun.tools.javac.main.Main.**compile(Main.java:270)
>>>>>>>         at com.sun.tools.javac.Main.**compile(Main.java:87)
>>>>>>>         at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native 
>>>>>>> Method)
>>>>>>>         at 
>>>>>>> sun.reflect.**NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**39)
>>>>>>>
>>>>>>>
>>>>>>> [INFO] 
>>>>>>> ------------------------------**------------------------------**------------
>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>> [INFO] 
>>>>>>> ------------------------------**------------------------------**------------
>>>>>>> [INFO] Total time: 2 minutes 27 seconds
>>>>>>> [INFO] Finished at: Thu Dec 06 13:50:27 CET 2012
>>>>>>> [INFO] Final Memory: 52M/259M
>>>>>>> [INFO] 
>>>>>>> ------------------------------**------------------------------**------------
>>>>>>> Build step 'Invoquer les cibles Maven de haut niveau' marked build as 
>>>>>>> failure
>>>>>>> Finished: FAILURE
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>>  *Mohamed Reda, El alaoui*
>>>>>
>>>>> *
>>>>> *
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -- 
>>>>
>>>>  *Mohamed Reda, El alaoui*
>>>>
>>>> *
>>>> *
>>>>
>>>>  
>>
>>
>> -- 
>>
>> *Mohamed Reda, El alaoui*
>>
>> *
>> *
>>
>>
>
>
> -- 
>
> *Mohamed Reda, El alaoui*
>
> *
> *
>
>

Reply via email to