memory

Force the JVM to collect garbage early and reduce system memory used early

我只是一个虾纸丫 提交于 2020-01-04 01:56:28
问题 We operate a Java application that we did not develop. This application uses quite a lot of memory for certain tasks, depending on the data, that is manipulated, up to 4GB. At other times, very little memory is needed, around 300MB. Once the JVM grabs hold of a lot of memory, it takes a very long time until the garbage is collected and even longer until memory is returned back to the operating system. That's a problem for us. What happens is as follows: The JVM needs a lot of memory for a

How Python deals with objects that come from “elsewhere”

时光怂恿深爱的人放手 提交于 2020-01-04 01:55:30
问题 This may be a stupid question, but I don't get in Python how we can use object that we did not some define or imported. Consider the following example, using Python's datetime module: from datetime import date date1 = date(2019,1,1) date2 = date(2019,1,5) type(date2-date1) #<class 'datetime.timedelta'> type(date2) #<class 'datetime.date'> Then date2-date1 is of timedelta class, even though we haven't imported this. (I could probably also cook up other examples, where we obtain objects, even

科大讯飞离线命令词识别报错总结

这一生的挚爱 提交于 2020-01-04 01:49:18
1、win10执行下列行时报错:memory can't be written QISR.INSTANCE.QISRBuildGrammar(grammarType, grammarContent, grammarLength, params, new BuildCallback(), asr_data); 登陆讯飞账号,控制台中提交工单,告知appid,打包新的msc.dll或msc_x64.dll。 2、invalid memory access,bnf过大,减少bnf内容。多进程或多现程,配合多个讯飞文件集(内容分多个bnf,搭配各自的dll、语法缓存路径),找到匹配度最高的命令词。 3、报23108,除了传参和方法调用间隔外,也可考虑bnf过大。 4、bnf过期,bnf已经修改并保存,但识别的仍然是之前的bnf内容,是由于缓存文件未重新成功写入,删除缓存文件call.g、call_16K,然后重新运行程序。 来源: CSDN 作者: 风铃峰顶 链接: https://blog.csdn.net/haoranhaoshi/article/details/103817201

Java Neo4J out of memory

偶尔善良 提交于 2020-01-04 01:28:09
问题 This is a bit like this: Neo4j OutOfMemory problem But it's outdated and apparently so are the solutions as far as I can tell. So I'm trying to insert around 100K nodes with 5.5M relations (I actually cut down my data set so it's now more like <100K nodes with 2.8M relations). After a while, it runs out of memory and I get an exception like so: Exception in thread "GC-Monitor" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Unknown Source) at java.lang.String.<init

Eclipse memory allocation problem

℡╲_俬逩灬. 提交于 2020-01-03 21:48:20
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is

Eclipse memory allocation problem

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-03 21:48:12
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is

Eclipse memory allocation problem

萝らか妹 提交于 2020-01-03 21:48:11
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is

Does Swift's UnsafeMutablePointer<Float>.allocate(…) actually allocate memory?

与世无争的帅哥 提交于 2020-01-03 20:57:18
问题 I'm trying to understand Swift's unsafe pointer API for the purpose of manipulating audio samples. The non-mutable pointer variants (UnsafePointer, UnsafeRawPointer, UnsafeBufferPointer) make sense to me, they are all used to reference previously allocated regions of memory on a read-only basis. There is no type method "allocate" for these variants The mutable variants (UnsafeMutablePointer, UnsafeMutableRawPointer), however, are documented as actually allocating the underlying memory.

Why is my android app using so much memory at startup

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 20:28:14
问题 I have been looking into a memory leak issue for a while. I found a cover flow on the internet from http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html Now I was under the impression this app was causing my outofmemory issues, and its still possible that it has something to do with it. However, I have deleted everything from my application except the splash screen. There are no other activities. and it does Nothing...... The initial intent loads the Splash Screen activity. My

Memory Leak Using malloc fails

喜夏-厌秋 提交于 2020-01-03 20:28:13
问题 I am writing a program to leak memory( main memory ) to test how the system behaves with low system memory and swap memory. We are using the following loop which runs periodically and leaks memory main(int argc, char* argv[] ) { int arg_mem = argv[1]; while(1) { u_int_ptr =(unsigned int*) malloc(arg_mem * 1024 * 1024); if( u_int_ptr == NULL ) printf("\n leakyapp Daemon FAILED due to insufficient available memory...."); sleep( arg_time ); } } Above loop runs for sometime and prints the message