Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Heap error #3

Open
rlkutnick opened this issue Aug 30, 2012 · 1 comment
Open

Java Heap error #3

rlkutnick opened this issue Aug 30, 2012 · 1 comment

Comments

@rlkutnick
Copy link

Below is the error I get when I try to run the recipe below (comes with the product) and tell it to grab GA data from 1-1-12 through 8-30-12. Everything else in the file is the same (aside from my GA login credentials).

Furthermore, once this is fixed, I'd love to be able to submit a dynamic date rather than a literal so that I could pull all data Year to Date or use any other supported date function. Thanks!


Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\Ryan> cd c:\users\ryan\downloads
PS C:\users\ryan\downloads> cd ga2csv-download
PS C:\users\ryan\downloads\ga2csv-download> java -jar ga2csv-0.1.jar recipes\traffic-and-sales-growth-over-time.xml out
put\new-query-output2.csv
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.google.gdata.util.XmlParser$ElementHandler.initializeXmlBlob(XmlParser.java:377)
at com.google.gdata.data.ExtensionPoint.initializeArbitraryXml(ExtensionPoint.java:523)
at com.google.gdata.data.ExtensionPoint$ExtensionHandler.(ExtensionPoint.java:729)
at com.google.gdata.data.ExtensionPoint.getHandler(ExtensionPoint.java:450)
at com.google.gdata.data.ExtensionPoint.getExtensionHandler(ExtensionPoint.java:632)
at com.google.gdata.data.ExtensionPoint$ExtensionHandler.getChildHandler(ExtensionPoint.java:740)
at com.google.gdata.data.BaseEntry$AtomHandler.getChildHandler(BaseEntry.java:1203)
at com.google.gdata.util.XmlParser$ElementHandler.getChildHandler(XmlParser.java:240)
at com.google.gdata.util.XmlParser.startElement(XmlParser.java:816)
at org.xml.sax.helpers.ParserAdapter.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou
rce)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.xml.sax.helpers.ParserAdapter.parse(Unknown Source)
at com.google.gdata.util.XmlParser.parse(XmlParser.java:685)
at com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867)
at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68)
at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39)
at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:100)
at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52)
at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:66)
at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:34)

PS C:\users\ryan\downloads\ga2csv-download>

@pratikborkar07
Copy link

Hi, try to set max heap size(-XmxSIZE) as well as max parameter size(-XX:MaxPermSize=SIZE) depending on your RAM size and remove garbage collection limit.
eg.:- java -Xmx4096m -XX:MaxPermSize=2048m -XX:-UseGCOverheadLimit -jar ga2csv.jar recipes\abc.xml output\abc.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants