Quantcast

PermGen issues during PMD analysis

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

PermGen issues during PMD analysis

Jackson, Jonathan

Hi

 

 

I am getting PermGen issues during PMD analysis of my codebase after upgrading to Sonar 3.1.1.

Just wodmering if anyone else had run into similar issues.

 

java.lang.OutOfMemoryError: PermGen space

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.createMethodScope(ScopeAndDeclarationFinder.java:67)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:165)

        at net.sourceforge.pmd.ast.ASTConstructorDeclaration.jjtAccept(ASTConstructorDeclaration.java:27)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:43)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:137)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration.jjtAccept(ASTClassOrInterfaceBodyDeclaration.java:34)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:39)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBody.jjtAccept(ASTClassOrInterfaceBody.java:19)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:116)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:18)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:155)

        at net.sourceforge.pmd.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:33)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:108)

        at net.sourceforge.pmd.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:35)

        at net.sourceforge.pmd.symboltable.SymbolFacade.initializeWith(SymbolFacade.java:11)

        at net.sourceforge.pmd.sourcetypehandlers.JavaTypeHandler$2.start(JavaTypeHandler.java:27)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:103)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:210)

        at org.sonar.plugins.pmd.PmdTemplate.process(PmdTemplate.java:70)

 


_____________________________________________________________________
The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy,distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege (or other rules or laws with similar effect in jurisdictions outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary.

British Gas Services Limited and Centrica Energy (Trading) Limited, both wholly owned subsidiaries of Centrica PLC, are authorised and regulated by the Financial Services Authority.

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England No 3141243.

Centrica plc

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England and Wales No 3033654
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PermGen issues during PMD analysis

Freddy Mallet
Hi Jackson,

No there isn't any known similar issue. Did you manage to fix this issue by slightly increasing the maximum amount of memory allocated to the Sonar batch size and what's this maximum amount ?

Thanks
Freddy
 
-----
Sonar for Continuous Inspection



On Wed, Jul 11, 2012 at 12:53 PM, Jackson, Jonathan <[hidden email]> wrote:

Hi

 

 

I am getting PermGen issues during PMD analysis of my codebase after upgrading to Sonar 3.1.1.

Just wodmering if anyone else had run into similar issues.

 

java.lang.OutOfMemoryError: PermGen space

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.createMethodScope(ScopeAndDeclarationFinder.java:67)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:165)

        at net.sourceforge.pmd.ast.ASTConstructorDeclaration.jjtAccept(ASTConstructorDeclaration.java:27)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:43)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:137)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration.jjtAccept(ASTClassOrInterfaceBodyDeclaration.java:34)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:39)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBody.jjtAccept(ASTClassOrInterfaceBody.java:19)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:116)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:18)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:155)

        at net.sourceforge.pmd.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:33)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:108)

        at net.sourceforge.pmd.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:35)

        at net.sourceforge.pmd.symboltable.SymbolFacade.initializeWith(SymbolFacade.java:11)

        at net.sourceforge.pmd.sourcetypehandlers.JavaTypeHandler$2.start(JavaTypeHandler.java:27)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:103)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:210)

        at org.sonar.plugins.pmd.PmdTemplate.process(PmdTemplate.java:70)

 


_____________________________________________________________________
The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy,distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege (or other rules or laws with similar effect in jurisdictions outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary.

British Gas Services Limited and Centrica Energy (Trading) Limited, both wholly owned subsidiaries of Centrica PLC, are authorised and regulated by the Financial Services Authority.

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England No 3141243.

Centrica plc

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England and Wales No 3033654

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: PermGen issues during PMD analysis

Jackson, Jonathan

Hi Freddy

 

 

 

Apologies my mistake, the issue was not with the server but the Sonar Ant ask on the client.

 

It has been fixed by upping the MaxPermSize for the Ant task from 128M TO 256M and it is running ok now.

 

kind regards,

Jon Jackson

Development | British Gas Online | mob: +44 7904459973

 

thinkdigital_rgb

 

From: Freddy Mallet [mailto:[hidden email]]
Sent: 13 July 2012 09:45
To: [hidden email]
Subject: Re: [sonar-user] PermGen issues during PMD analysis

 

Hi Jackson,

 

No there isn't any known similar issue. Did you manage to fix this issue by slightly increasing the maximum amount of memory allocated to the Sonar batch size and what's this maximum amount ?

 

Thanks

Freddy

 

-----

Sonar for Continuous Inspection



On Wed, Jul 11, 2012 at 12:53 PM, Jackson, Jonathan <[hidden email]> wrote:

Hi

 

 

I am getting PermGen issues during PMD analysis of my codebase after upgrading to Sonar 3.1.1.

Just wodmering if anyone else had run into similar issues.

 

java.lang.OutOfMemoryError: PermGen space

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.createMethodScope(ScopeAndDeclarationFinder.java:67)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:165)

        at net.sourceforge.pmd.ast.ASTConstructorDeclaration.jjtAccept(ASTConstructorDeclaration.java:27)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:43)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:137)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration.jjtAccept(ASTClassOrInterfaceBodyDeclaration.java:34)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:39)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceBody.jjtAccept(ASTClassOrInterfaceBody.java:19)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:116)

        at net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:18)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:155)

        at net.sourceforge.pmd.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:33)

        at net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)

        at net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.cont(ScopeAndDeclarationFinder.java:247)

        at net.sourceforge.pmd.symboltable.ScopeAndDeclarationFinder.visit(ScopeAndDeclarationFinder.java:108)

        at net.sourceforge.pmd.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:35)

        at net.sourceforge.pmd.symboltable.SymbolFacade.initializeWith(SymbolFacade.java:11)

        at net.sourceforge.pmd.sourcetypehandlers.JavaTypeHandler$2.start(JavaTypeHandler.java:27)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:103)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)

        at net.sourceforge.pmd.PMD.processFile(PMD.java:210)

        at org.sonar.plugins.pmd.PmdTemplate.process(PmdTemplate.java:70)

 


_____________________________________________________________________
The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy,distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege (or other rules or laws with similar effect in jurisdictions outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary.

British Gas Services Limited and Centrica Energy (Trading) Limited, both wholly owned subsidiaries of Centrica PLC, are authorised and regulated by the Financial Services Authority.

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England No 3141243.

Centrica plc

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England and Wales No 3033654

 


_____________________________________________________________________
The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy,distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege (or other rules or laws with similar effect in jurisdictions outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary.

British Gas Services Limited and Centrica Energy (Trading) Limited, both wholly owned subsidiaries of Centrica PLC, are authorised and regulated by the Financial Services Authority.

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England No 3141243.

Centrica plc

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England and Wales No 3033654
Loading...