out-of-memory

Why does heap space run out only when running JUnit tests?

我的未来我决定 提交于 2019-12-19 05:04:51
问题 When running JUnit tests, I always seem to run into this error: eclipse outOfMemoryError: heap space I have monitored Eclipse with JConsole and heap memory peaks at about 150MB. I have set heap memory to 1GB. I am using the following arguments when starting Eclipse: -vm "C:\Program Files\Java\jre1.5.0_08\bin\javaw.exe" -vmargs -Xmx1024M -XX:MaxPermSize=128M -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false Does

Why Apache Spark is performing the filters on client

两盒软妹~` 提交于 2019-12-19 04:39:46
问题 Being newbie on apache spark, facing some issue on fetching Cassandra data on Spark. List<String> dates = Arrays.asList("2015-01-21","2015-01-22"); CassandraJavaRDD<A> aRDD = CassandraJavaUtil.javaFunctions(sc). cassandraTable("testing", "cf_text",CassandraJavaUtil.mapRowTo(A.class, colMap)). where("Id=? and date IN ?","Open",dates); This query is not filtering data on the cassandra server. While this java statement is executing its shooting up the memory and finally throwing spark java.lang

outOfMemoryError with background drawables

这一生的挚爱 提交于 2019-12-19 04:14:44
问题 I read a lot about memory leaks with Bitmaps but I can't solve my problem. I have an app works fine in my phone, but in others I'm getting the outOfMemoryError bitmap size exceeds VM. My problem is that I don't understand how to free this resources. I have a game with several activities and dialog with drawables in background in XML files, sometimes as a layout background and sometimes as a ImageView to fullscreen. How I can free this memory? I can't use recycle, I'm use unbindDrawables

Will I encounter java.lang.OutOfMemoryError even with no lack of memory?

此生再无相见时 提交于 2019-12-19 03:19:20
问题 I was reading Unveiling the java.lang.Out OfMemoryError and I was wondering if I've understood it correctly. Is it true that if the Java VM throws a java.lang.OutOfMemoryError: Requested array size exceeds VM limit It means that the VM has rejected the creation of an array because it has exceeded a pre-defined limit (exceeded the likes of the VM), and not because I have run out of memory in the heap space? Am I right to say that java.lang.OutOfMemoryError: Requested array size exceeds VM

How to identify the issue when Java OutOfMemoryError?

拜拜、爱过 提交于 2019-12-18 19:05:12
问题 How to identify the issue when java OutOfMemoryError or stackoverflow comes in production. By which reason it is coming or why the server is down. For example I am developing an application which is lived on production and UAT. Instantly on production java OutOfMemoryError or stackoverflow . Then how can we track this issue, by which reason it has happened ? Is there any technique that can tell me by which code flow this is happening ? Please explain it. I have faced this issue many times.

Find all the numbers in one file that are not in another file in python

孤人 提交于 2019-12-18 18:51:02
问题 There are two files, say FileA and FileB and we need to find all the numbers that are in FileA which is not there in FileB. All the numbers in the FileA are sorted and all the numbers in FileB are sorted. For example, Input: FileA = [1, 2, 3, 4, 5, ...] FileB = [1, 3, 4, 6, ...] Output: [2, 5, ...] The memory is very limited and even one entire file cannot be loaded into memory at a time. Also linear or lesser time complexity is needed. So if the files are small enough to fit in the memory,

Find all the numbers in one file that are not in another file in python

南笙酒味 提交于 2019-12-18 18:50:05
问题 There are two files, say FileA and FileB and we need to find all the numbers that are in FileA which is not there in FileB. All the numbers in the FileA are sorted and all the numbers in FileB are sorted. For example, Input: FileA = [1, 2, 3, 4, 5, ...] FileB = [1, 3, 4, 6, ...] Output: [2, 5, ...] The memory is very limited and even one entire file cannot be loaded into memory at a time. Also linear or lesser time complexity is needed. So if the files are small enough to fit in the memory,

MapFragment Google Maps API v2 Out of Memory Error / Memory Leak

六月ゝ 毕业季﹏ 提交于 2019-12-18 16:57:46
问题 I've read a number of similar posts over the past few days, but none that specifically answer this problem. I start getting an OOM issue after ~2 minutes of aggressive map panning and zooming with the Hybrid map. The app also seems to hold onto the memory after the crash because it takes less time to reach OOM after the first failure. I scaled down the code to just an Activity with a MapFragment and still get the same OOM. I've used DDMS and MAT to try and isolate the problem, in addition to

out of memory error when reading csv file in chunk

孤人 提交于 2019-12-18 16:32:24
问题 I am processing a csv -file which is 2.5 GB big. The 2.5 GB table looks like this: columns=[ka,kb_1,kb_2,timeofEvent,timeInterval] 0:'3M' '2345' '2345' '2014-10-5',3000 1:'3M' '2958' '2152' '2015-3-22',5000 2:'GE' '2183' '2183' '2012-12-31',515 3:'3M' '2958' '2958' '2015-3-10',395 4:'GE' '2183' '2285' '2015-4-19',1925 5:'GE' '2598' '2598' '2015-3-17',1915 And I want to groupby ka and kb_1 to get the result like this: columns=[ka,kb,errorNum,errorRate,totalNum of records] '3M','2345',0,0%,1

Why RegisterClass fails with ERROR_NOT_ENOUGH_MEMORY?

自作多情 提交于 2019-12-18 15:47:09
问题 Shortly, my question is, why can WinAPI RegisterClass fail with ERROR_NOT_ENOUGH_MEMORY , when there is a lot of memory free, and what can I do to prevent it? Background: I'm developing an application (WinSCP FTP/SFTP client) that many people use for automating file transfers. Some are running it every minute, every day, from a Windows Scheduler. I'm getting a lot of reports that after a certain number of runs the application stops working. The number of runs to trigger the problem does not