The huge Perm gene compared to the size of the application, is this normal?

I deployed a web application to the Glassfish server, which consists of many JAX-RS REST services and database processing through JPA. The WAR file I used for deployment is about 2 MB, and it has very little traffic (just a few testing requests). Out of curiosity, I ran jmap to look at memory usage, and I got this

using thread-local object allocation.
Parallel GC with 2 thread(s)

Heap Configuration:
MinHeapFreeRatio = 0
MaxHeapFreeRatio = 100
MaxHeapSize      = 536870912 (512.0MB)
NewSize          = 1310720 (1.25MB)
MaxNewSize       = 17592186044415 MB
OldSize          = 5439488 (5.1875MB)
NewRatio         = 2
SurvivorRatio    = 8
PermSize         = 21757952 (20.75MB)
MaxPermSize      = 201326592 (192.0MB)
G1HeapRegionSize = 0 (0.0MB)

Heap Usage:
PS Young Generation
Eden Space:
capacity = 99090432 (94.5MB)
used     = 36256552 (34.576942443847656MB)
free     = 62833880 (59.923057556152344MB)
36.589357083436674% used
From Space:
capacity = 38797312 (37.0MB)
used     = 13067872 (12.462493896484375MB)
free     = 25729440 (24.537506103515625MB)
33.68241593644426% used
To Space:
capacity = 37748736 (36.0MB)
used     = 0 (0.0MB)
free     = 37748736 (36.0MB)
0.0% used
PS Old Generation
capacity = 70254592 (67.0MB)
used     = 59577728 (56.8177490234375MB)
free     = 10676864 (10.1822509765625MB)
84.80261048274254% used
PS Perm Generation
capacity = 135266304 (129.0MB)
used     = 88929544 (84.80982208251953MB)
free     = 46336760 (44.19017791748047MB)
65.74404812598414% used

, , Perm Gen 84 . , ( 100 , , , perm gen , ?). : ? , - ? , , , . Eden , 34 , , , !

EDIT: ( pid). , jmap, perm gen (, 70MB). , , ?

+4
1

- . , , (Glassfish, Tomcat,...) .

( ), . , , .

. , Java , .

: .

Glassfish:

, Glassfish. , . , .

0

Source: https://habr.com/ru/post/1569006/


All Articles