P22630svs是什么故障怎么解决决

豆丁微信公众号
君,已阅读到文档的结尾了呢~~
2013年总结22630,年度考核个人总结,教师年度考核个人总结,年度工作总结,年终总结,2014年工作总结,年终工作总结,2014年个人工作总结,个人年度工作总结,团员年度个人总结
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
2013年总结22630
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='http://www.docin.com/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口1688.com,阿里巴巴打造的全球最大的采购批发平台
1688/淘宝会员(仅限会员名)请在此登录
cbulogin.center.et2Server is OKsubtotal: $0.00
Classified Car Ads
XKs Unlimited is pleased to offer this space for its customers and friends to sell their vehicles. This space is for retail use only. There is no charge to post here. By clicking on the 'Classified' link below, you can view any and all the ads. To place an ad click 'My Vehicles' and with some miminal contact info you're set to post an ad complete with photos and description.Browse and contact sellers for the posted vehicles& &create and manage your classified adsClick 'My Vehicles' above to register before placing an ad in the XKS Unlimited Classifieds.Some notes before posting photos: We suggest at least 7-9 images, there is a 20 photo limit. If possible, please re-size your images to a maximum of 800 pixels wide x 400 pixels tall at 72dpi. If you are unsure of your photo size send the digital image(s) you have to our Admim Editor at
and we will take care of sizing and matching up with your advert. To have your ad removed also notify . Thank you and good luck with your listing.
Advertisement
Site Shortcuts
Newsletter Signup - Get News and SpecialsGBT&&车载音视频设备电磁兼容性要求和测量方法(.pdf&
您当前位置:
标签:&& 共3页|上传时间: 14:02:43
您电脑的flash版本过底,或没有安装flash,请点击以下图标下载安装flash插件
文档加载中
广告倒计时 秒
用户名:游客
评论内容不能少于10个子迗哋吥仁,じ人萬粅ゐ刍狗!
聖亽吥仁,視苡絔姓莋蝼蚁!
java 故障排查之一:高CPU占用
一个应用占用CPU很高,除了确实是计算密集型应用之外,通常原因都是出现了死循环。
(友情提示:本博文章欢迎转载,但请注明出处:hankchen,)
以我们最近出现的一个实际故障为例,介绍怎么定位和解决这类问题。
根据top命令,发现PID为28555的Java进程占用CPU高达200%,出现故障。
通过ps aux | grep PID命令,可以进一步确定是tomcat进程出现了问题。但是,怎么定位到具体线程或者代码呢?
首先显示线程列表:
ps -mp pid -o THREAD,tid,time
找到了耗时最高的线程28802,占用CPU时间快两个小时了!
其次将需要的线程ID转换为16进制格式:
printf "%x\n" tid
最后打印线程的堆栈信息:
jstack pid |grep tid -A 30
找到出现问题的代码了!
现在来分析下具体的代码:ShortSocketIO.readBytes(ShortSocketIO.java:106)
ShortSocketIO是应用封装的一个用短连接Socket通信的工具类。readBytes函数的代码如下:
public byte[] readBytes(int length) throws IOException {
if ((this.socket == null) || (!this.socket.isConnected())) {
throw new IOException("++++ attempting to read from closed socket");
byte[] result =
ByteArrayOutputStream bos = new ByteArrayOutputStream();
if (this.recIndex &= length) {
bos.write(this.recBuf, 0, length);
byte[] newBuf = new byte[this.recBufSize];
if (this.recIndex & length) {
System.arraycopy(this.recBuf, length, newBuf, 0, this.recIndex - length);
this.recBuf = newB
this.recIndex -=
int totalread =
if (this.recIndex & 0) {
totalread -= this.recI
bos.write(this.recBuf, 0, this.recIndex);
this.recBuf = new byte[this.recBufSize];
this.recIndex = 0;
int readCount = 0;
while (totalread & 0) {
if ((readCount = this.in.read(this.recBuf)) & 0) {
if (totalread & readCount) {
bos.write(this.recBuf, 0, readCount);
this.recBuf = new byte[this.recBufSize];
this.recIndex = 0;
bos.write(this.recBuf, 0, totalread);
byte[] newBuf = new byte[this.recBufSize];
System.arraycopy(this.recBuf, totalread, newBuf, 0, readCount - totalread);
this.recBuf = newB
this.recIndex = (readCount - totalread);
totalread -= readC
问题就出在标红的代码部分。如果this.in.read()返回的数据小于等于0时,循环就一直进行下去了。而这种情况在网络拥塞的时候是可能发生的。
至于具体怎么修改就看业务逻辑应该怎么对待这种特殊情况了。
最后,总结下排查CPU故障的方法和技巧有哪些:
1、top命令:Linux命令。可以查看实时的CPU使用情况。也可以查看最近一段时间的CPU使用情况。
2、PS命令:Linux命令。强大的进程状态监控命令。可以查看进程以及进程中线程的当前CPU使用情况。属于当前状态的采样数据。
也可以使用 top -p javaPid查看java纯程使用情况。
3、jstack:Java提供的命令。可以查看某个进程的当前线程栈运行情况。根据这个命令的输出可以定位某个进程的所有线程的当前运行状态、运行代码,以及是否死锁等等。
也可以使用 kill -3 javaPid将java纯程打印到控制台。
4、pstack:Linux命令。可以查看某个进程的当前线程栈运行情况。
没有更多推荐了,

我要回帖

更多关于 手机故障及解决方法 的文章

 

随机推荐