out-of-memory

Javascript string size limit: 256 MB for me - is it the same for all browsers?

穿精又带淫゛_ 提交于 2019-12-17 10:52:30
问题 Curious about what was the maximum string length I could get in Javascript, I tested it myself, today, on my Firefox 43.0.1, running in Windows 7. I was able to construct a string with length 2^28 - 1 , but when I tried to create a string with one more char, Firebug showed me the "allocation size overflow" error, meaning the string must be less than 256 MB. Is this the same thing for all browsers, all computers, all operational systems, or it depends? I created the following snippet to find

Old JaxB and JDK8 Metaspace OutOfMemory Issue

允我心安 提交于 2019-12-17 10:44:46
问题 We are working on a business application (1 million+ LOC) developed since 10+ years. While switching to JDK8 we get an issue with the metaspace of JDK8. This seems to be related to the JaxB-Version referenced in com.sun.xml.ws:webservices-rt:1.4 (Metro 1.4). Because of the intense linking in the application and legacy creation of classes/instances via JaxB it isn't simple to switch on the fly the old libraries. Currently we are researching this issue. We created a sample programm that

java.lang.OutOfMemoryError - BitmapFactory.decode(strPath)

99封情书 提交于 2019-12-17 07:12:48
问题 I am getting java.lang.OutOfMemoryError , whenever i am calling UploadActivity.java Line Number 176 is: Bitmap bm = BitmapFactory.decodeFile(strPath); View my Log: 12-07 17:57:10.585: E/AndroidRuntime(16708): FATAL EXCEPTION: main 12-07 17:57:10.585: E/AndroidRuntime(16708): java.lang.OutOfMemoryError 12-07 17:57:10.585: E/AndroidRuntime(16708): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 12-07 17:57:10.585: E/AndroidRuntime(16708): at android.graphics.BitmapFactory

OutOfMemoryException when I read 500MB FileStream

筅森魡賤 提交于 2019-12-17 06:07:16
问题 I'm using Filestream for read big file (> 500 MB) and I get the OutOfMemoryException. Any solutions about it. My Code is: using (var fs3 = new FileStream(filePath2, FileMode.Open, FileAccess.Read)) { byte[] b2 = ReadFully(fs3, 1024); } public static byte[] ReadFully(Stream stream, int initialLength) { // If we've been passed an unhelpful initial length, just // use 32K. if (initialLength < 1) { initialLength = 32768; } byte[] buffer = new byte[initialLength]; int read = 0; int chunk; while (

How to load a large xlsx file with Apache POI?

早过忘川 提交于 2019-12-17 03:57:20
问题 I have a large .xlsx file (141 MB, containing 293413 lines with 62 columns each) I need to perform some operations within. I am having problems with loading this file ( OutOfMemoryError ), as POI has a large memory footprint on XSSF (xlsx) workbooks. This SO question is similar, and the solution presented is to increase the VM's allocated/maximum memory. It seems to work for that kind of file-size (9MB), but for me, it just simply doesn't work even if a allocate all available system memory.

How to load a large xlsx file with Apache POI?

情到浓时终转凉″ 提交于 2019-12-17 03:57:11
问题 I have a large .xlsx file (141 MB, containing 293413 lines with 62 columns each) I need to perform some operations within. I am having problems with loading this file ( OutOfMemoryError ), as POI has a large memory footprint on XSSF (xlsx) workbooks. This SO question is similar, and the solution presented is to increase the VM's allocated/maximum memory. It seems to work for that kind of file-size (9MB), but for me, it just simply doesn't work even if a allocate all available system memory.

java.lang.OutOfMemoryError: Java heap space in Maven

*爱你&永不变心* 提交于 2019-12-17 03:50:40
问题 When I run maven test, java.lang.OutOfMemoryError happens. I google it for solutions and have tried to export MAVEN_OPTS=-Xmx1024m , but it did not work. Anyone know other solutions for this problem ,BTW I am using maven 3.0 Thanks in advance Paste the error message here when run "mvn test -e" Failed tests: warning(junit.framework.TestSuite$1) testDefaultPigJob_1(com.snda.dw.pig.impl.DefaultPigJobLocalTest) testDefaultPigJob_2(com.snda.dw.pig.impl.DefaultPigJobLocalTest) Tests run: 11,

java.lang.OutOfMemoryError: Java heap space in Maven

白昼怎懂夜的黑 提交于 2019-12-17 03:50:31
问题 When I run maven test, java.lang.OutOfMemoryError happens. I google it for solutions and have tried to export MAVEN_OPTS=-Xmx1024m , but it did not work. Anyone know other solutions for this problem ,BTW I am using maven 3.0 Thanks in advance Paste the error message here when run "mvn test -e" Failed tests: warning(junit.framework.TestSuite$1) testDefaultPigJob_1(com.snda.dw.pig.impl.DefaultPigJobLocalTest) testDefaultPigJob_2(com.snda.dw.pig.impl.DefaultPigJobLocalTest) Tests run: 11,

Unable to execute dex: GC overhead limit exceeded in Eclipse

大兔子大兔子 提交于 2019-12-17 03:46:19
问题 When I downloaded the Git project OsmAnd and went to compile it, Eclipse returned these errors: [Dex Loader] Unable to execute dex: GC overhead limit exceeded [OsmAnd] Conversion to Dalvik format failed: Unable to execute dex: GC overhead limit exceeded Google and Stackoverflow said that I must change -Xms40m -Xmx384m in eclipse.ini . Conversion to Dalvik format failed: Unable to execute dex: Java heap space. I cleaned project and restarted Eclipse, but it did not help. I found this link:

Unable to execute dex: GC overhead limit exceeded in Eclipse

纵饮孤独 提交于 2019-12-17 03:46:01
问题 When I downloaded the Git project OsmAnd and went to compile it, Eclipse returned these errors: [Dex Loader] Unable to execute dex: GC overhead limit exceeded [OsmAnd] Conversion to Dalvik format failed: Unable to execute dex: GC overhead limit exceeded Google and Stackoverflow said that I must change -Xms40m -Xmx384m in eclipse.ini . Conversion to Dalvik format failed: Unable to execute dex: Java heap space. I cleaned project and restarted Eclipse, but it did not help. I found this link: