heap-memory

which GC Policy to choose optthruput or gencon ? IBM websphere 7

♀尐吖头ヾ 提交于 2019-12-13 06:42:17
问题 I have 4 GB heap size allocated to JVM . why should i choose genconn GC policy for short lived object. As far as my understanding is genconn will divide the Heap into 2 parts (nursery and tenured ) which will increase the response time of the application but not throughput as i have sufficient heap size for my application. But if i am only concerned about the throughput should i not use optthruput policy so that i have less GC call. I can only think of one advantage of genconn is to avoid

java heap size increasing

别等时光非礼了梦想. 提交于 2019-12-13 05:06:23
问题 I compile a jar file, and i write to the Log every half a minute to check threads and memory situation. Attached are the start of the log, and the end of the day log, after this software was stuck, and stop working. In the middle of the day several automatic operations happened. I received quotes about 40 per seconds, and finished to take care of every one of the quotes before the next came. Plus, every 4 seconds i write a map with info to the DB. Any ideas why heap size in increasing? (look

Measure static, heap and stack memory ? (c++, Linux - Centos 7)

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:05:52
问题 I would like to measure stack, heap and static memory separately because I have some constraints for each one. To measure the heap memory I'm using valgrind->massif tool. Massif should also be possible to measure heap AND stack memory but it shows strange resultats : Last snapshot without --stacks=yes provides total(B)=0, useful-heap(B)=0, extra-heap(B)=0 (so all is fine) Last snapshot with --stacks=yes provides total(B)= 2,256, useful-heap(B)=1,040, extra-heap(B)=0, stacks(B)=1,208 (which

How do you increase the maximum heap size for the javac process in Borland JBuilder 2005/2006

﹥>﹥吖頭↗ 提交于 2019-12-12 18:34:08
问题 In most modern IDEs there is a parameter that you can set to ensure javac gets enough heap memory to do its compilation. For reasons that are not worth going into here, we are tied for the time being to JBuilder 2005/2006, and it appears the amount of source code has exceeded what can be handled by javac. Please keep the answer specific to JBuilder 2005/2006 javac (we cannot migrate away right now, and the Borland Make compiler does not correctly support Java 1.6) I realize how and what

Predictionio evaluation fails with empty.maxBy exception and training with java.lang.OutOfMemoryError

大城市里の小女人 提交于 2019-12-12 18:18:02
问题 I have downloaded the latest update on text classification template. I created a new app and imported stopwords.json and emails.json by specifying app id $ pio import --appid <appID> --input data/stopwords.json $ pio import --appid <appID> --input data/emails.json Then I changed engine.json and given my app name in it. { "id": "default", "description": "Default settings", "engineFactory": "org.template.textclassification.TextClassificationEngine", "datasource": { "params": { "appName": "

High RAM usage for empty android application

杀马特。学长 韩版系。学妹 提交于 2019-12-12 12:10:02
问题 I have a very simple android application with a single activity which has only 1 TextView which says "Hello World". The app doesn't doesn't do anything else. Its the default app you get when you create a new app in Android Studio. Basically the app doesn't do anything. As expected, when you try to do memory analysis for this app, the Android Device Monitor shows a very small memory usage (heap size ~ 10 MB, heap allocation ~ 3 MB) on hdpi/mdpi devices like MotoE, MotoG etc. However on xhdpi

Liquibase generateChangeLog Failed: Java heap space

社会主义新天地 提交于 2019-12-12 12:02:03
问题 When I try to generate SQL data from a DB2 database, I am getting Java Heap space issue. There are around 25 tables with approx 1000 records. I use the below scripts in generating the changeset data: C:\liquibase-3.0.2-bin>liquibase --driver=com.ibm.db2.jcc.DB2Driver \ --classpath="C:\db2jcc.jar" \ --changeLogFile="C:\Liquibase Release\liqui_MYDB_MYSCHEMA_Data.xml" \ --url="jdbc:db2://__ip__here__:9008/MYDB" \ --username="user" \ --password="12345" \ --defaultSchemaName="MYSCHEMA" \ -

New pointer (by malloc) is same as one of the freed/old pointers

霸气de小男生 提交于 2019-12-12 11:24:17
问题 I am trying to track use-after-free errors in C. And my question is that, if I have the code like this: A * ptrA = malloc(sizeof(A)); A * aliasA = ptrA; // do something ' free(ptrA) // some other code B * ptrB = malloc(sizeof(B)); // assume this return same pointer as ptrA //trying to use aliasA here Just wondering if the use of aliasA is a UAF error? If it is, what is going wrong here? To clear the question, I think it is better to add a small example: int main(){ int *ptr = (int *)malloc(4)

Why isn't the allocated heap memory shrinking when usage is below MaxHeapFreeRatio?

此生再无相见时 提交于 2019-12-12 08:55:02
问题 I have a java server task, which is hogging memory. For one I doubt it ever exceeded MinHeapFreeRatio, but that's speculation. It is more interesting that GC reduces the mature generation to roughly 2%, yet never reduces the allocated memory for the heap. Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 3221225472 (3072.0MB) NewSize = 268435456 (256.0MB) MaxNewSize = 268435456 (256.0MB) OldSize = 805306368 (768.0MB) NewRatio = 7 SurvivorRatio = 8 PermSize =

Java memory allocation limit

前提是你 提交于 2019-12-12 04:49:48
问题 I have a loop that spawns a lot of threads. These threads contains, among other things, 2 (massive) StringBuilder objects. These threads then run and do their thing. However, I noticed that after a certain amount of threads, I get strange crashes. I know this is because of these StringBuilder, because when I reduce their initial capacity, I can start a lot more threads. Now for these StringBuilders, they are create like this in the constructor of the thread object: StringBuilder a = new