out-of-memory

Why RegisterClass fails with ERROR_NOT_ENOUGH_MEMORY?

只谈情不闲聊 提交于 2019-12-18 15:47:07
问题 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

Duration of Excessive GC Time in “java.lang.OutOfMemoryError: GC overhead limit exceeded”

这一生的挚爱 提交于 2019-12-18 15:18:49
问题 Occasionally, somewhere between once every 2 days to once every 2 weeks, my application crashes in a seemingly random location in the code with: java.lang.OutOfMemoryError: GC overhead limit exceeded . If I google this error I come to this SO question and that lead me to this piece of sun documentation which expains: The parallel collector will throw an OutOfMemoryError if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection and

Android Volley give me an outOfMemory exception

爷,独闯天下 提交于 2019-12-18 15:17:38
问题 I am using volley to showing images in horizontal swipe view from the server, but my images are quite large that's way i am getting an exception of out of memory Below is my volley class: public class Volley{ private RequestQueue mRequestQueue; private ImageLoader mImageLoader; public Volley(Context ctx) { Log.v("Volley", "Volley onCreate"); mRequestQueue = com.android.volley.toolbox.Volley.newRequestQueue(ctx); final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); final int

JMeter OutOfMemoryError

久未见 提交于 2019-12-18 12:14:54
问题 I am facing below OutOfMemor errors, and JMeter stops working.... java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid4412.hprof ... Heap dump file created [591747609 bytes in 71.244 secs] Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Exception in thread "AWT-EventQueue-0" java

JVM OutOfMemory error “death spiral” (not memory leak)

爱⌒轻易说出口 提交于 2019-12-18 12:13:16
问题 We have recently been migrating a number of applications from running under RedHat linux JDK1.6.0_03 to Solaris 10u8 JDK1.6.0_16 (much higher spec machines) and we have noticed what seems to be a rather pressing problem: under certain loads our JVMs get themselves into a "Death Spiral" and eventually go out of memory. Things to note: this is not a case of a memory leak . These are applications which have been running just fine (in one case for over 3 years) and the out-of-memory errors are

how do I load 100 million rows in to memory

…衆ロ難τιáo~ 提交于 2019-12-18 12:08:58
问题 I have the need of loading 100 million+ rows from a MySQL database in to memory. My java program fails with java.lang.OutOfMemoryError: Java heap space I have 8GB RAM in my machine and I have given -Xmx6144m in my JVM options. This is my code public List<Record> loadTrainingDataSet() { ArrayList<Record> records = new ArrayList<Record>(); try { Statement s = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY); s.executeQuery("SELECT movie_id,customer

High memory usage when using Hibernate

别来无恙 提交于 2019-12-18 11:35:43
问题 I code a server side application with java run on linux server. I use hibernate to open session to database, use native sql to query it and always close this session by try, catch, finally. My server query DB using hibernate with very high frequency. I already define MaxHeapSize for it is 3000M but it usually use 2.7GB on RAM, it can decrease but slower than increase. Sometime it grow up to 3.6GB memory usage, more than my MaxHeapSize define when start. When memory used is 3.6GB, i try to

Lock handler for arbitrary keys

删除回忆录丶 提交于 2019-12-18 11:11:20
问题 I have code which implements a "lock handler" for arbitrary keys. Given a key , it ensures that only one thread at a time can process that(or equals) key (which here means calling the externalSystem.process(key) call). So far, I have code like this: public class MyHandler { private final SomeWorkExecutor someWorkExecutor; private final ConcurrentHashMap<Key, Lock> lockMap = new ConcurrentHashMap<>(); public void handle(Key key) { // This can lead to OOM as it creates locks without removing

Out Of memory Exception in IIS

六月ゝ 毕业季﹏ 提交于 2019-12-18 09:54:29
问题 I have have an application that has MVC template and uses REST . Say I have a rest call made and it hits the particular method void sample function() { // connects to db through entity framework // retrieves data and embeds in to list //returns JSON of data received. } So the problem here is I measured the memory it took to run the program . it was about say 40,000kb. Now when i give another rest call the memory is not cleaned in IIS.It starts from 40,000kb instead of zero.finally if i make

Windows phone 8.1 Implement virtualization for Custom variable sized Gridview

为君一笑 提交于 2019-12-18 09:38:52
问题 I have implemented custom itempanel for gridview to support variable item height using this link posted by JerryNixon.My Custom panel supports 3 different sized template(depending on image dimension I am deciding which template to use).This custom Gridview should have pagination and it should support more than 200 items. Right now i could load only 50 items and it crashes because of out of memory exception event in 1GB device . Its one of the requirement in out project. I know when we