Questions tagged [java-heap]

When a program started Java Virtual Machine gets some memory from Operating System. Java Virtual Machine(JVM) uses this memory for all its need and part of this memory is call java heap memory.

Heap in Java generally located at bottom of address space and move upwards.

20 questions
0
votes
0 answers

Generating Java heap dump in Kubernetes container

I am running a Jenkins Controller in kubernetes. I have noticed that the controller has been restarting ALOT. kgp jkmaster-0 NAME READY STATUS RESTARTS AGE jkmaster-0 1/1 Running 8 30m The memory…
jeunii
  • 391
  • 4
  • 13
0
votes
2 answers

When a methd returns a String , will it be a literal or a String object?

Lets say a method returns a String String str = methodCall(); The return type of methodCall() is String. Will we get a String literal which will be in pool memory or just a String object?
0
votes
1 answer

Apache Spark : java.lang.OutOfMemoryError: Java Heap Space issue

I am facing the java.lang.OutOfMemoryError: Java Heap Space issue when I run the same spark program every 2nd time. Here is a scenario: When I do the spark-submit and runs the spark program for the first time, it gives me the correct output &…
Saurabh Deshpande
  • 1,153
  • 4
  • 18
  • 35
0
votes
2 answers

Java Garbage Collection after heap memory crosses a threshold

Is it possible to invoke a forceful garbage collection in java every time heap memory crosses a particular threshold ?
-1
votes
1 answer

Trying to create a Mosaic in ImageJ and I get this Java error

I am trying to stitch images using the MosaicJ plugin in Fiji (ImageJ), however, I get the error in the code below. Does anyone know what it means and how I can fix this please? I have no experience using Java at all. I am using a MacBook by the way…
Tobi Lawal
  • 1
  • 1
  • 1
1
2