Linked Questions
11 questions linked to/from How to view the current heap size that an application is using?
220
votes
6
answers
114k
views
Java using much more memory than heap size (or size correctly Docker memory limit)
For my application, the memory used by the Java process is much more than the heap size.
The system where the containers are running starts to have memory problem because the container is taking much ...
14
votes
2
answers
3k
views
Getting Memory Statistics in Java: Runtime vs. MemoryMXBean
I am creating a scheduled executor to read the memory usage of the JVM. I have come across two ways to get memory statistics in a running JVM - Runtime & MemoryMXBean, with the following ...
1
vote
3
answers
17k
views
java.lang.OutOfMemoryError: Java heap space in Intellij cannot work even if i change memory space
I was just ruined by this error for the whole week. I really don't know what happened, I got this error after compiling the source, I yet write custom code there, the source is fresh from the repo. I ...
4
votes
1
answer
3k
views
How to understand java.lang.management.MemoryMXBean and -Xms?
MemoryMXBean.getHeapMemoryUsage()
I have a jvm process that ran with -Xms512m -Xmx512m, and below show the MemoryMXBean.getHeapMemoryUsage() of this process:
init = 512M
used = 105M
...
1
vote
1
answer
3k
views
Return large file from JAX-WS service
I'm trying to return large file from JAX-WS service method, but getting strange client error. Here is my code:
@WebService(targetNamespace = "http://java.CAEServer", portName = "CAEInstance")
public ...
2
votes
2
answers
1k
views
How to get the current heap size that an android application is using?
I found that it can be easily done using java from this answer but couldn't find yet how to do it if my applicating is written using C#.NET and xamarin libraries. How to get those same datas (current ...
0
votes
2
answers
2k
views
How to upload a file of 750MB in JAVA, using jersey-client V2.13 (from a client to a server)?
Just before starting to explain you my problem, I would like to share with you the libraries' versions that I use and the server:
javax.ws.rs-api: 2.0.1
jersey-container-servlet: 2.13
jersey-media-...
2
votes
3
answers
655
views
Is it possible to query the Java VM to find the maximum possible array size? How?
I have a program in which I want to allocate the largest array possible. Is there a way in Java to query the VM to find out what that is? If so, how can I do it?
My latest attempt at getting the ...
1
vote
1
answer
978
views
Garbage collection in the Scala shell
So I have just started using Scala and have the following code to create an IndexedSeq of dummy data called out. The dummy data consists of 20000 tuples each containing a 36 character unique ...
1
vote
0
answers
521
views
Upsource .jvmoptions and JVM max heap size
I want to change the heap size made available to the multiple Upsource processes (frontend, cassandra, etc) when running it in a docker container.
I'm trying to make the configuration by using the ...
3
votes
2
answers
140
views
Do if java.lang.OutOfMemoryError is about to happen
I am testing a game solver that tracks solved positions in a Map<Long, Integer> solvedPositions where Long is positionID and Integer holds smallest known ply count to reach this position. Solver ...