memory

Java memory leak, only Jenkins running, Jenkins .war analysis shows nothing strange

梦想的初衷 提交于 2021-02-07 11:13:53
问题 I'm currently running Jenkins on a mac mini with Xmx2048m set and a permgen space of 512, I have the 'Monitoring' plugin running and it shows Jenkins using ~200M memory (spiking at 400 during archives). This number is slowly creeping up as you can see below. http://i.imgur.com/vTuIyTz.png When I look at the java process using 'top' on the mac mini it is showing the memory at about 685M. This number creeps up quicker and, eventually, hits 2048 and Jenkins bombs out. http://i.imgur.com/TojBjhI

When does Java calls Garbage Collector

北战南征 提交于 2021-02-07 10:28:15
问题 I read many post about Java Heap. I saw if we get java.lang.OutOfMemoryError we should increase -Xmx to address this issue. for e.g java -Xmx2048m -Xms256m This will increase heap memory used by Java to 2048MB. Now comes to the question that is knocking on my head. Question with reference to above settings : Does Java waits till its HEAP space reach to 256MB before calling garbage collector ? Is this the reason for production we want to have same value for -XMx and -Xms so that Java does not

When does Java calls Garbage Collector

落爺英雄遲暮 提交于 2021-02-07 10:27:12
问题 I read many post about Java Heap. I saw if we get java.lang.OutOfMemoryError we should increase -Xmx to address this issue. for e.g java -Xmx2048m -Xms256m This will increase heap memory used by Java to 2048MB. Now comes to the question that is knocking on my head. Question with reference to above settings : Does Java waits till its HEAP space reach to 256MB before calling garbage collector ? Is this the reason for production we want to have same value for -XMx and -Xms so that Java does not

When does Java calls Garbage Collector

╄→尐↘猪︶ㄣ 提交于 2021-02-07 10:27:03
问题 I read many post about Java Heap. I saw if we get java.lang.OutOfMemoryError we should increase -Xmx to address this issue. for e.g java -Xmx2048m -Xms256m This will increase heap memory used by Java to 2048MB. Now comes to the question that is knocking on my head. Question with reference to above settings : Does Java waits till its HEAP space reach to 256MB before calling garbage collector ? Is this the reason for production we want to have same value for -XMx and -Xms so that Java does not

Native memory consumed by JVM vs java process total memory usage

亡梦爱人 提交于 2021-02-07 09:26:31
问题 I have a tiny java console application which I would like to optimize in terms of memory usage. It is being run with Xmx set to only 64MB. The overall memory usage of the process according to different monitoring tools (htop, ps, pmap, Dynatrace) shows values above 250MB. I run it mostly on Ubuntu 18 (tested on other OS-es as well). I've used -XX:NativeMemoryTracking java param and Native Memory Tracking with jcmd to find out why so much more memory is used outside of the heap. The values

Is it possible to force a range of virtual addresses?

自古美人都是妖i 提交于 2021-02-07 09:22:04
问题 I have an Ada program that was written for a specific (embedded, multi-processor, 32-bit) architecture. I'm attempting to use this same code in a simulation on 64-bit RHEL as a shared object (since there are multiple versions and I have a requirement to choose a version at runtime). The problem I'm having is that there are several places in the code where the people who wrote it (not me...) have used Unchecked_Conversions to convert System.Addresses to 32-bit integers. Not only that, but

Is it possible to force a range of virtual addresses?

柔情痞子 提交于 2021-02-07 09:21:02
问题 I have an Ada program that was written for a specific (embedded, multi-processor, 32-bit) architecture. I'm attempting to use this same code in a simulation on 64-bit RHEL as a shared object (since there are multiple versions and I have a requirement to choose a version at runtime). The problem I'm having is that there are several places in the code where the people who wrote it (not me...) have used Unchecked_Conversions to convert System.Addresses to 32-bit integers. Not only that, but

Determine total memory usage of embedded C program

断了今生、忘了曾经 提交于 2021-02-07 08:14:14
问题 I would like to be able to debug how much total memory is being used by C program in a limited resource environment of 256 KB memory (currently I am testing in an emulator program). I have the ability to print debug statements to a screen, but what method should I use to calculate how much my C program is using (including globals, local variables [from perspective of my main function loop], the program code itself etc..)? A secondary aspect would be to display the location/ranges of specific

Determine total memory usage of embedded C program

蹲街弑〆低调 提交于 2021-02-07 08:12:21
问题 I would like to be able to debug how much total memory is being used by C program in a limited resource environment of 256 KB memory (currently I am testing in an emulator program). I have the ability to print debug statements to a screen, but what method should I use to calculate how much my C program is using (including globals, local variables [from perspective of my main function loop], the program code itself etc..)? A secondary aspect would be to display the location/ranges of specific

Instantiating C++ objects from QML has tremendous memory usage overhead

此生再无相见时 提交于 2021-02-07 07:59:37
问题 Instantiating a QObject derived class on the heap in C++ gives me roughly about 160 bytes per object. Registering the same object via qmlRegisterType() for creation from QML and creating the object dynamically via createObject() gives me a little over 2000 bytes per object. That's quite the difference, almost 13 times more memory per object is being used when creating from QML. Note that the object doesn't have any bindings or anything extra compared to how it is in C++. Naturally, being