JVM 参数调优 -【Metaspace Size】

本文是全系列中第7 / 10篇:JVM 参数调优

本套视频是由HeapDump社区推出的 JVM 参数系列课程~

本期参数介绍

从JDK8开始,JVM将原来存放klass元数据的Perm换成了Metaspace,Perm时期会为klass元数据分配一块内存,如果设置不够用就会抛出OOM,Metaspace的出现希望能解决这个问题,Metaspace确实可以最大限度来使用堆外的内存,但是挺遗憾,还是有一些参数会导致Metaspace抛出OOM

那今天我们就来聊下和Metaspace大小相关的参数,说起Metaspace的大小参数,有很多人肯定会想到MetaspaceSize和MaxMetaspaceSize,但是其实不然,这两个参数是控制Metaspace触发GC的,真正和Metaspace的内存大小有关的参数主要是下面的几个

CompressedClassSpaceSize:CompressedClassSpaceSize 
InitialBootClassLoaderMetaspaceSize:InitialBootClassLoaderMetaspaceSize 

  • HeapDump 社区:https://heapdump.cn
  • 视频出处:https://www.bilibili.com/video/av925621118


微信扫描下方的二维码阅读本文

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

评论(5)

  • vorbelutr ioperbir 2024年12月1日 上午7:49

    This design is spectacular! You definitely know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job. I really loved what you had to say, and more than that, how you presented it. Too cool!

  • stream east xyz live 2025年2月11日 下午4:47

    Sweet site, super design, real clean and utilize pleasant.

  • NBA live streams HD 2025年2月11日 下午6:57

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  • CFB Streaming Online 2025年2月11日 下午7:17

    With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My site has a lot of unique content I’ve either authored myself or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you know any techniques to help protect against content from being stolen? I’d definitely appreciate it.

  • 1xbet yeni giriş 2025年2月13日 下午1:28

    Some truly interesting information, well written and generally user genial.