PDA

View Full Version : RC3 PCI: OutOfMemory when debugging



pmalves
09-19-2007, 12:31 PM
Hello.

I was trying to start the latest PCI in debug mode. For that I added to run.sh the following flags:


-Xdebug -Xrunjdwp:transport=dt_socket,address=8765,server=y,suspend=n
However, when I start the PCI I get out of memory errors. I even added the lines -Xms128m -Xmx1524m and I still have those errors


This is the method I've always used to debug pentaho, and now it's not working.

I've attached the full server.log file, but the important part is here:


2007-09-19 17:21:17,063 DEBUG [org.pentaho.core.repository.SolutionRepositoryBase] SOLUTION-REPOSITORY: SolutionRepository.DEBUG_FILE_
PATH - getFile path=/home/pedro/dev/pentaho/project-etsa/solution
2007-09-19 17:21:20,712 ERROR [STDERR] [org.netbeans.mdr.Logger] INFORMATIONAL *********** Exception occurred ************ at Wed Sep
19 17:21:20 WEST 2007
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at org.netbeans.mdr.handlers.MDRClassLoader.defineClass(MDRClassLoader.java:91)
at org.netbeans.mdr.handlers.BaseObjectHandler.getHandlerClass(BaseObjectHandler.java:135)
at org.netbeans.mdr.NBMDRepositoryImpl.getHandler(NBMDRepositoryImpl.java:641)
at org.netbeans.mdr.NBMDRepositoryImpl.getHandler(NBMDRepositoryImpl.java:623)
at org.netbeans.mdr.handlers.PackageProxyHandler._handleGetClassProxy(PackageProxyHandler.java:108)
at javax.jmi.model.ModelPackage$Impl.getAssociation(Unknown Source)
at javax.jmi.model.ModelPackage$Impl._getClass(Unknown Source)
at org.netbeans.mdr.handlers.PackageProxyHandler.refClass(PackageProxyHandler.java:245)
at org.netbeans.mdr.handlers.PackageProxyHandler.refClass(PackageProxyHandler.java:256)
at org.netbeans.lib.jmi.xmi.XmiContext.resolveElementName(XmiContext.java:573)
at org.netbeans.lib.jmi.xmi.XmiContext.resolveInstanceOrReference(XmiContext.java:678)
at org.netbeans.lib.jmi.xmi.XmiElement$ObjectValues.startSubElement(XmiElement.java:1460)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:219)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:136)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:107)
at org.netbeans.lib.jmi.xmi.XMISaxReaderImpl.read(XMISaxReaderImpl.java:58)
at org.netbeans.lib.jmi.xmi.XMISaxReaderImpl.read(XMISaxReaderImpl.java:51)
at org.netbeans.mdr.NBMDRepositoryImpl.installPureMof(NBMDRepositoryImpl.java:1361)
at org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1331)
at org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:764)
2007-09-19 17:21:20,753 ERROR [STDERR] org.pentaho.pms.core.exception.CWMException: CWM.ERROR_0002 - Error getting a handle on the rep
ository.
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.pms.core.CWM.getRepository(CWM.java:492)
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.pms.core.CWM.getRepositoryInstance(CWM.java:430)
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.plugin.mql.PMDSystemListener.startup(PMDSystemListener.java:49)
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.core.system.PentahoSystem.createSystemListeners(PentahoSystem.java:388)
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:321)
2007-09-19 17:21:20,754 ERROR [STDERR] at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:212)


Any tips? How should I debug? Thank you

pmalves
09-19-2007, 12:42 PM
Answering to myself, adding the options XX:PermSize=128M -XX:MaxPermSize=256M solved my issue