全民k歌qq和微信合并怎么分享微信好友

线上环境,哪位大神帮忙分析一下为什么出现频繁的YGC并且紧接着一个FGC? - ITeye问答
配置:-Xms40G -Xmx40G -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:PermSize=256m -XX:MaxPermSize=256m
总计:
GC time:
&&& 35 minutes on PS MarkSweep (112 collections)
20.341 seconds on PS Scavenge (187 collections)
摘抄了一段日志:
.220: [GC
28484 Desired survivor size
bytes, new threshold 1 (max 15)
28485& [PSYoungGen: K-&112K)] K-&893632K), 0.0533160 secs] [Times: user=0.33 sys=0.00, real=0.06 secs]
.273: [Full GC (System) [PSYoungGen: 18293K-&0K(K)] [PSOldGen: 9979732K-&971520K)] 9998026K-&893632K)&&&&&& [PSPermGen: 146185K-&2144K)], 28.0464640 secs] [Times: user=28.04 sys=0.00, real=28.04 secs]
28487 Total time for which application threads were stopped: 28.1010400 seconds
28488 Total time for which application threads were stopped: 0.0009380 seconds
.551: [GC
28490 Desired survivor size
bytes, new threshold 1 (max 15)
28491& [PSYoungGen: 733225K-&56K)] K-&899776K), 0.0550300 secs] [Times: user=0.40 sys=0.01, real=0.06 secs]
.613: [Full GC (System) [PSYoungGen: 9984K-&0K(K)] [PSOldGen: 9889979K-&971520K)] 9899963K-&899776K) [&&&&& PSPermGen: 145887K-&2144K)], 22.0304540 secs] [Times: user=22.01 sys=0.01, real=22.03 secs]
问题补充:明明Old区还有足够的空间,为什么会FUllGC呢?并且每次YGC之后都有一个FGC?
目前还没有答案
已解决问题
未解决问题一段网上找的关于JAVA朗读语音的代码,大神帮忙解答下 - 开源中国社区
当前访客身份:游客 [
当前位置:
这段代码有很多地方不理解,运行起来也没效果,我觉得我不够理解他,希望大神们帮忙解答下,问题我都在代码中标注了
public static void main(String[] args) throws IOException {
// ?? 这个Sapi.SpVoice是需要安装什么东西吗,感觉平白无故就来了
ActiveXComponent sap = new ActiveXComponent("Sapi.SpVoice");
// Dispatch是做什么的?
Dispatch sapo = sap.getObject();
// 音量 0-100
sap.setProperty("Volume", new Variant(50));
// 语音朗读速度 -10 到 +10
sap.setProperty("Rate", new Variant(5));
Variant defalutVoice = sap.getProperty("Voice");
Dispatch dispdefaultVoice = defalutVoice.toDispatch();
Variant allVoices = Dispatch.call(sapo, "GetVoices");
Dispatch dispVoices = allVoices.toDispatch();
Dispatch setvoice = Dispatch.call(dispVoices, "Item", new Variant(1)).toDispatch();
ActiveXComponent voiceActivex = new ActiveXComponent(dispdefaultVoice);
ActiveXComponent setvoiceActivex = new ActiveXComponent(setvoice);
Variant item = Dispatch.call(setvoiceActivex, "GetDescription");
// ?? 这段代码时实现朗读吗?
Dispatch.call(sapo, "Speak", new Variant("大家好好好还不市公安局奥飞"));
} catch (Exception e) {
e.printStackTrace();
} finally {
sapo.safeRelease();
sap.safeRelease();
共有0个回答
更多开发者职位上
有什么技术问题吗?
十月阳光的其它问题
类似的话题

我要回帖

更多关于 全民k歌微信登录不了 的文章

 

随机推荐