---
title: "cpu突然飙高，过阵下降"
author: "tofhao"
date: "2016-11-03T16:04:14Z"
tags: []
categories: ["互联网"]
slug: "cpu"
draft: false
lastmod: "2016-11-03T16:04:14Z"
id: 2335129
url: "https://tofhao.iteye.com/blog/2335129"
---

1.首先业务属于web内网业务

2.按照经验jstack 查看，见另一篇文章，并无特点

3.查看jvm监控的数据

4.发现jvm的内存接近最大，然后gc，cpu使用率增高

5.解决设置xmx与xms均为4g，观察ok