博客
关于我
JAVA虚拟机内存调节
阅读量:183 次
发布时间:2019-02-28

本文共 1054 字,大约阅读时间需要 3 分钟。

JVM?????????????????

1. ?????

?JVM??????????????????????????????????????????

  • -Xmx128m?????????????????50%??????????????????????????
  • -Xms128m?????????????????????????????????????????????
  • -Xmn128m????????????????????????sun????????3/8????????????????????????????
  • -XX:NewSize=n????????????????????????????
  • -XX:PermSize=128m?????????????????1/8?
  • -XX:MaxPermSize=128m??????????????PermGen???
  • -XX:NewRatio=3???????????????????3??????????1/4?
  • -XX:SurvivorRatio=3??????Eden????Survivor??????????3??Eden????????4/5?

2. ?????

?????????????????????????????????

  • -Xss?????????HotSpot????????????????????10m?
  • -Xos???????????HotSpot??????????-Xss?????

3. ???????

???????JVM????????????????

  • %JAVA_HOME%\bin\jconsole.exe?JDK???????????????????????????

4. ?????????????

?????????????????????PermGen????????????

  • Caused by: java.lang.OutOfMemoryError: PermGen space?????????????????????-XX:MaxPermSize=512m???????????

????

  • ?????????????????????????????????
  • ?????????jconsole.exe??????????????????
  • ???????????????????????????????????????

????????????????JVM??????????????????

转载地址:http://jncj.baihongyu.com/

你可能感兴趣的文章
projection介绍及EPSG:4326和EPSG:3857的投射转换
查看>>
project打开文件时,显示无法识别此文件格式?
查看>>
Prometheus + Grafana on Kubernetes部署
查看>>
prometheus + grafana进行服务器资源监控
查看>>
Prometheus Alertmanager 告警配置详解
查看>>
Prometheus Grafana 展示平台
查看>>
Prometheus pushgateway使用详解
查看>>
Prometheus 云原生 - Prometheus 数据模型、Metrics 指标类型、Exporter 相关
查看>>
Prometheus 云原生 - 基于 file_sd、http_sd 实现 Service Discovery
查看>>
Prometheus 云原生 - 微服务监控报警系统 (Promethus、Grafana、Node_Exporter)部署、简单使用
查看>>
Prometheus 云原生 - 监控 Linux、MySQL、Redis、RabbitMQ、Docker、SpringBoot 3.x
查看>>
Prometheus 介绍
查看>>
Prometheus 安全配置详解
查看>>
prometheus 安装node_exporter, node_exporter 安装最新版 普罗米修思安装监控服务器client
查看>>
Prometheus 安装部署实战
查看>>
prometheus 持久化存储方案
查看>>
Prometheus 监控系统企业级实战
查看>>
Prometheus 监控系统简介
查看>>
Prometheus 配置详解
查看>>
Prometheus 采集器使用详解
查看>>