Questions tagged [metaspace]

Metaspace is Java 8's new memory space for storing class meta-data information, and that grows automatically unlike its predecessor PermGen space.

98 questions
3
votes
1 answer

MaxMetaSpace and CompressedClassSpaceSize

Can I understand when UseCompressedClassPointers is enabled, MaxMetaspace is not relevance and CompressedClassSpaceSize determines the size of the metaspace?. Because from Oracle doc …
null
  • 548
  • 3
  • 14
3
votes
2 answers

Clojure eval causes garbage collector to hang

I encounter this problem when running a genetic programming algorithm which uses eval. To illustrate the problem, I narrowed it down to the following code fragment: (loop [] (do (eval (list '+ (rand) (rand))) (recur))) When I run the…
3
votes
1 answer

How to cleanup metaspace forcefully with java 1.8

I recently upgraded java version from 1.6 to 1.8. After migrating to java 1.8, the metaspace memory consumption increases with time (observed this through JConsole.) Also with every web page access, the metaspace size increases. So, Is there any way…
3
votes
2 answers

Why MetaSpace Size is twice as big as Used MetaSpace?

I wrote a program to simulate MetaSpace OOM. But I found that MetaSpace Size is almost always twice as big as Used MetaSpace. Why? I run my program with flag -XX:MaxMetaspaceSize=50m, the program throw OOM when Used MetaSpace reached about 25M…
expoter
  • 1,622
  • 17
  • 34
3
votes
0 answers

CPU utilization degraded after upgrading java version from 1.7 to 1.8

For my application we have recently upgraded to java 1.8 from 1.7 and as per the performance test results we checked that CPU utilization is a big issue and it has increased by 71% !! I'm using this below jvm arguments with jdk8: …
Siddhartha
  • 492
  • 1
  • 5
  • 15
3
votes
1 answer

Why class metaspace increase over time in Java 8?

I am running Tomcat application (which consists of Hibernate + EhCache). It is typical ORM webapp that shouldn't create lots of classes. However, Native Memory Tracking says "Nay". During last 24 hours my webapp create on average ~1 new class per…
danbst
  • 3,363
  • 18
  • 38
3
votes
1 answer

Spring Boot Metaspace Memory Leak

I'm using Spring Boot 1.2.5 with Java 1.8.0_51 and once the application is up and running, the metaspace keeps growing at a 10MB per hour rate aprox. Seems like a classloading leak or something, I just can not figure out what is causing it. The…
carlos_technogi
  • 198
  • 3
  • 6
3
votes
1 answer

Java 8 Metaspace - Avoid decrease

I've got a short question due to Metaspace in Java 8. I know that I can set an initial size with the -XX:MetaspaceSize - Parameter. But I wonder if it's possible to configure that this value will be the minimum size. My target is to prevent Full GCs…
AnarchoEnte
  • 558
  • 4
  • 20
2
votes
0 answers

Metaspace issue with to many deployments (wildfly 9)

We currently have an issue where the number of deployed ear files in the container is breaching the metaspace limit. Unfortunately the servers that are used run on potatoes and can not be upgraded. The rack is full and inside a factory where there…
invultri
  • 21
  • 2
2
votes
0 answers

Java memory leak in non-heap space

I have a Java application (running under OpenJDK 1.8.0_181) that has memory issues. Specifically after some time all physical memory appears consumed and the app fails to allocate more memory. The difficult part is that it's not the heap memory that…
lagivan
  • 2,689
  • 22
  • 30
2
votes
1 answer

Metaspace growth, dead classloader and GC

we have a situation wherein the metaspace of a springboot microservice keeps growing but the heap is behaving well. jmap -clstats shows there are thowsands of dead classloaders of the following kind. 0x00000000e3c8e3c8 1 4087 …
2
votes
2 answers

Does JVM metaspace always trigger GC when resizing

For JVM after Java 8 When the size of metaspace > -XX:metaspaceSize, it will trigger a gc. No matter how you configure -XX:metaspaceSize and -XX:maxMetaspaceSize, the initial size of metaspace is usually a fixed value (20.8M) on a 64-bit server.…
ProtossShuttle
  • 1,623
  • 20
  • 40
2
votes
2 answers

Coldfusion Metaspace null

Working with CF2016 I have been seeing this error in a developer environment and also in production enviroments but less frecuently. Metaspace null. The error ocurred on line -1. Reading some forums get the idea of the garbage collector and managed…
Giancarlo Benítez
  • 428
  • 1
  • 4
  • 19
2
votes
0 answers

How to inspect instanceKlass in hotspot after jdk 8?

Before jdk8, the instanceKlass objects is put in the PermGen area, but now PermGen is replaced by Metaspace and Metaspace is based on native space. Then the question comes, on jdk 7 , you can inspect the vm objects by HSDB, but now the instanceKlass…
Q_SJ
  • 207
  • 1
  • 4
  • 13
2
votes
1 answer

Where are static variables stored in java 8?

Where are static variables stored? As I know in java 7 it was PermGen. But java 8 migrated to MetaSpace. So are they stored in MetaSpace or is there another location?
Illia
  • 158
  • 1
  • 10