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

"Error due to lack of JAVA heap memory while running ocimum2000." #83

Open
ambarishK opened this issue Feb 26, 2019 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@ambarishK
Copy link
Collaborator

Run command -
ami-search-new -p /media/ambarish123/AMBARISH/Ocimumproject18feb --dictionary /media/ambarish123/AMBARISH/dictionary/monoterpenes.xml /media/ambarish123/AMBARISH/dictionary/diterpene.xml /media/ambarish123/AMBARISH/dictionary/triterpene.xml /media/ambarish123/AMBARISH/dictionary/insecticides.xml /media/ambarish123/AMBARISH/dictionary/invasivespecies.xml /media/ambarish123/AMBARISH/dictionary/Ocimumspecies.xml /media/ambarish123/AMBARISH/dictionary/phytochemicals.xml country gene drugs plantparts

Error snippet

specific and generic values.

Generic values (AMISearchTool)
================================
basename            null
cproject            /media/ambarish123/AMBARISH/Ocimumproject18feb
ctree               
cTreeList           2117 trees [/media/ambarish123/AMBARISH/Ocimumproject18feb/30
dryrun              false
excludeBase         null
excludeTrees        null
file types          []
forceMake           false
includeBase         null
includeTrees        null
log4j               
logfile             null
verbose             0

Specific values (AMISearchTool)
================================
dictionaryList       [/media/ambarish123/AMBARISH/dictionary/monoterpenes.xml, /media/ambarish123/AMBARISH/dictionary/diterpene.xml, /media/ambarish123/AMBARISH/dictionary/triterpene.xml, /media/ambarish123/AMBARISH/dictionary/insecticides.xml, /media/ambarish123/AMBARISH/dictionary/invasivespecies.xml, /media/ambarish123/AMBARISH/dictionary/Ocimumspecies.xml, /media/ambarish123/AMBARISH/dictionary/phytochemicals.xml, country, gene, drugs, plantparts]
dictionaryTop        null
dictionarySuffix     [xml]
ignorePlugins        []

Run time error related JAVA heap memory.

................................................................................Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at sun.nio.cs.UTF_8.newEncoder(UTF_8.java:72)
	at java.lang.StringCoding$StringEncoder.<init>(StringCoding.java:282)
	at java.lang.StringCoding$StringEncoder.<init>(StringCoding.java:273)
	at java.lang.StringCoding.encode(StringCoding.java:338)
	at java.lang.String.getBytes(String.java:918)
	at nu.xom.Text.build(Unknown Source)
	at nu.xom.NonVerifyingHandler.flushText(Unknown Source)
	at nu.xom.NonVerifyingHandler.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.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.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at nu.xom.Builder.build(Unknown Source)
	at nu.xom.Builder.build(Unknown Source)
	at nu.xom.Builder.build(Unknown Source)
	at org.contentmine.eucl.xml.XMLUtil.parseQuietlyToDocument(XMLUtil.java:1197)
	at org.contentmine.cproject.args.DefaultArgProcessor.getScholarlyHtmlElement(DefaultArgProcessor.java:1381)
	at org.contentmine.cproject.files.CTree.ensureScholarlyHtmlElement(CTree.java:1239)
	at org.contentmine.cproject.args.DefaultArgProcessor.extractPSectionElements(DefaultArgProcessor.java:1365)
	at org.contentmine.ami.plugins.AMIArgProcessor.ensureSectionElements(AMIArgProcessor.java:257)
	at org.contentmine.ami.plugins.AMIArgProcessor.runRunMethodsOnChosenArgOptions(AMIArgProcessor.java:228)
	at org.contentmine.cproject.args.DefaultArgProcessor.runAndOutput(DefaultArgProcessor.java:1296)
	at org.contentmine.ami.plugins.word.WordPluginOption.run(WordPluginOption.java:36)
	at org.contentmine.ami.plugins.CommandProcessor.runLegacyPluginOptions(CommandProcessor.java:301)
	at org.contentmine.ami.tools.AMISearchTool.runLegacyCommandProcessor(AMISearchTool.java:128)
	at org.contentmine.ami.tools.AMISearchTool.runSearch(AMISearchTool.java:112)
issues -

I ran the project into the hard drive. There would not have been lack of memory space but it raises error. Please resolve.

@ambarishK ambarishK added the help wanted Extra attention is needed label Feb 26, 2019
@petermr
Copy link
Owner

petermr commented Feb 26, 2019 via email

@petermr
Copy link
Owner

petermr commented Feb 27, 2019

I can reproduce the problem:

java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.Arrays.copyOf(Arrays.java:3236)
	at java.lang.StringCoding.safeTrim(StringCoding.java:79)
	at java.lang.StringCoding.access$300(StringCoding.java:50)
	at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:305)
	at java.lang.StringCoding.encode(StringCoding.java:344)
	at java.lang.String.getBytes(String.java:918)
	at nu.xom.Text.build(Unknown Source)
	at nu.xom.NonVerifyingHandler.flushText(Unknown Source)
	at nu.xom.NonVerifyingHandler.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.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.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at nu.xom.Builder.build(Unknown Source)
	at nu.xom.Builder.build(Unknown Source)
	at org.contentmine.eucl.xml.XMLUtil.parseXML(XMLUtil.java:392)
	at org.contentmine.graphics.html.HtmlFactory.parseToXHTML(HtmlFactory.java:702)
	at org.contentmine.graphics.html.HtmlFactory.parse(HtmlFactory.java:647)
	at org.contentmine.graphics.html.HtmlFactory.parse(HtmlFactory.java:622)
	at org.contentmine.cproject.args.DefaultArgProcessor.getScholarlyHtmlElement(DefaultArgProcessor.java:1384)
	at org.contentmine.cproject.files.CTree.ensureScholarlyHtmlElement(CTree.java:1239)
	at org.contentmine.cproject.args.DefaultArgProcessor.extractPSectionElements(DefaultArgProcessor.java:1367)
	at org.contentmine.ami.plugins.AMIArgProcessor.ensureSectionElements(AMIArgProcessor.java:257)
	at org.contentmine.ami.plugins.AMIArgProcessor.runRunMethodsOnChosenArgOptions(AMIArgProcessor.java:228)
	at org.contentmine.cproject.args.DefaultArgProcessor.runAndOutput(DefaultArgProcessor.java:1298)
	at org.contentmine.ami.plugins.word.WordPluginOption.run(WordPluginOption.java:39)

This needs a rewrite of the search options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants