User b8eed45673
16-07-2011 19:19:45
I try import large SD-File (1.2GB, 400k records). I use import-features from jchem\examples\db_search with tomcat 6.0.14. I get such error:
Warning: check limit is 2000000000 lines for stream.
java.lang.OutOfMemoryError
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:199)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at chemaxon.marvin.io.PositionedInputStream.readLine8bit(PositionedInputStream.java:468)
at chemaxon.marvin.io.PositionedInputStream.readLine(PositionedInputStream.java:301)
at chemaxon.marvin.io.formats.AbstractMRecordReader.readLine(AbstractMRecordReader.java:127)
at chemaxon.marvin.io.formats.mdl.MolRecordReader.readLine(MolRecordReader.java:177)
at chemaxon.marvin.io.formats.mdl.MolRecordReader.readCtab(MolRecordReader.java:582)
at chemaxon.marvin.io.formats.mdl.MolRecordReader.readMol0(MolRecordReader.java:198)
at chemaxon.marvin.io.formats.mdl.MolRecordReader.nextRecord(MolRecordReader.java:140)
at chemaxon.marvin.io.formats.mdl.MolRecordReader.nextRecord(MolRecordReader.java:79)
at chemaxon.formats.MolFileHandler.collectFileInfo(MolFileHandler.java:48)
at chemaxon.jchem.file.ImportFileHandler.collectFileInfo(ImportFileHandler.java:52)
at chemaxon.jchem.db.Importer.getFileInfo(Importer.java:667)
at chemaxon.jchem.db.Importer.init(Importer.java:605)
at chemaxon.jchem.db.Importer.run(Importer.java:370)
Have Java enough memory if i use -Xms1400m
Or is that global limitation?