G1充分的时间很多时间(G1 full gc time much time)
我在第eigth核心和264G memeory linux机器中使用了hazelcast。下面是我的启动脚本。
nohup java -Djava.rmi.server.hostname=172.19.141.2 -server -Xms40G -Xmx40G -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:./logs/gc.log -Xss256k -XX:PermSize=128M -XX:MaxPermSize=512M -Djava.util.Arrays.useLegacyMergeSort=true -XX:+UseG1GC -XX:G1HeapRegionSize=32 -XX:MaxGCPauseMillis=600 -XX:InitiatingHeapOccupancyPercent=70 -XX:+HeapDumpOnOutOfMemoryError -Dhazelcast.jmx=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=2222 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.net.preferIPv4Stack=true -Djava.ext.dirs=../lib:../lib-business:../lib-other com.hazelcast.core.server.StartServer &
我的问题是,完整的GC需要大约12秒,这是不可接受的。我试图设置-XX:MaxGCPauseMillis = 600参数。但它没有用。这是gc日志。
2017-04-28T21:38:17.795+0800: 9237.910: [Full GC (Allocation Failure) 27G->7361M(40G), 15.6893722 secs] [Eden: 1024.0K(2010.0M)->0.0B(2048.0M) Survivors: 38.0M->0.0B Heap: 27.5G(40.0G)->7361.6M(40.0G)], [Metaspace: 17817K->17726K(18432K)] [Times: user=23.49 sys=0.16, real=15.69 secs]
希望得到你的帮助。
I am using hazelcast in a eigth core and 264G memeory linux machine.Next is my start script.
nohup java -Djava.rmi.server.hostname=172.19.141.2 -server -Xms40G -Xmx40G -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:./logs/gc.log -Xss256k -XX:PermSize=128M -XX:MaxPermSize=512M -Djava.util.Arrays.useLegacyMergeSort=true -XX:+UseG1GC -XX:G1HeapRegionSize=32 -XX:MaxGCPauseMillis=600 -XX:InitiatingHeapOccupancyPercent=70 -XX:+HeapDumpOnOutOfMemoryError -Dhazelcast.jmx=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=2222 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.net.preferIPv4Stack=true -Djava.ext.dirs=../lib:../lib-business:../lib-other com.hazelcast.core.server.StartServer &
My problem is that the full gc takes about 12 seconds,which is unacceptable.I have tried to set -XX:MaxGCPauseMillis=600 param.But it is not useful.This is the gc log.
2017-04-28T21:38:17.795+0800: 9237.910: [Full GC (Allocation Failure) 27G->7361M(40G), 15.6893722 secs] [Eden: 1024.0K(2010.0M)->0.0B(2048.0M) Survivors: 38.0M->0.0B Heap: 27.5G(40.0G)->7361.6M(40.0G)], [Metaspace: 17817K->17726K(18432K)] [Times: user=23.49 sys=0.16, real=15.69 secs]
Wish for your help.
原文:https://stackoverflow.com/questions/43682401
最满意答案
使用CSS,Ext会在计算组件大小并将其布局时考虑到它。
首先,在您的面板上放置一个自定义CSS类:
var p = new Ext.Panel({ title: 'My Panel', width:400, border: true //default also true. ,cls: 'my-panel' });
风格吧:
.x-panel.my-panel { border: 5px solid red; }
Use CSS, Ext will account for it when calculating the component size and laying it out.
First, put a custom CSS class on your panel:
var p = new Ext.Panel({ title: 'My Panel', width:400, border: true //default also true. ,cls: 'my-panel' });
Then style it:
.x-panel.my-panel { border: 5px solid red; }
相关问答
更多-
您的c#代码返回一个对象“Student”,但它应该返回一个具有学生数组作为其“data”属性的对象。 您需要返回此类型的对象: public class ExtStore { public List
data = new List (); } 这种方式例如: public ExtStore GetStudents() { Student studobj = new Student(); studobj.Id = 1; studobj.f ... -
如果使用普通的ExtJS 3.4,则不应该发生。 通常在viewready事件处理程序中选择默认行。 看我的小提琴: http : //jsfiddle.net/ak3vB/1/ If you use plain ExtJS 3.4 it shouldn't happen. Usually selecting default row is made in viewready event handler. See my fiddle: http://jsfiddle.net/ak3vB/1/
-
如何在Ext JS 3.4中选择日期后停止关闭datepicker(How to stop closing datepicker after selecting date in Ext JS 3.4)[2022-07-29]
这个问题的正确解决方案是: onSelect: function (m, d) { this.setValue(d); this.fireEvent('select', this, d); return; } The right solution for this question is: onSelect: function (m, d) { this.setValue(d); this.fireEvent('select', this, d); retu ... -
您只需要finsih您的代码并使用正确的config&xtype。 我已经复制了你的代码并在这个小提琴中创建了一个没有任何问题的网格,如果链接断开,代码也在下面。 Ext.application({ name: 'MyApp', launch: function() { Ext.create('Ext.data.Store', { storeId: 'simpsonsStore', fields: ['name', 'emai ...
-
Ext JS 3.4图像刷新(Ext JS 3.4 image refresh)[2022-12-08]
看看是否有帮助,首先,给你的autoEl一个ID autoEl: { tag: 'img', id: 'myImage', width: 90, height: 250, src: img_path } 然后使用DOM来改变图像 function setImage(new_image) { document.getElementById('myImage').src = new_image; } See if that helps, first, give ... -
使用CSS,Ext会在计算组件大小并将其布局时考虑到它。 首先,在您的面板上放置一个自定义CSS类: var p = new Ext.Panel({ title: 'My Panel', width:400, border: true //default also true. ,cls: 'my-panel' }); 风格吧: .x-panel.my-panel { border: 5px solid red; } Use CSS, Ext wil ...
-
你可以使用一个窗口来做,因为MessageBox没有任何配置来添加面板。 要显示掩码,只需将config选项模态设置为true即可。 win = new Ext.Window( { layout: 'fit', width: 500, height: 300, modal: true, closeAction: 'hide', items: new Ext.Panel( { ...
-
Ext JS 3.4:如何在GET发布后获取表单的请求URL(Ext JS 3.4: How to get form's request url after GET post)[2022-01-14]
用于提交表单的URL可从提交中使用的Ext.form.Action获得: action.getUrl(true) 其中true参数表明它是GET情况,因此表单参数需要附加到URL。 有关详细信息,请参阅源代码 。 可以从success函数中获取action对象作为其第二个参数(如文档所述 ): success: function(form, action) { } (请注意,由于某种原因,您的代码正在命名参数response和options )。 所以,你只需从success函数中获取第二个参数,并在 ... -
您可以使用此css代码包装Adout学生数据。 检查小提琴: https : //fiddle.sencha.com/#fiddle/1i3g .x-grid-cell-inner { white-space: initial; } You can use this css code for wrap Adout Students Data. Check fiddle:https://fiddle.sencha.com/#fiddle/1i3g .x-grid-cell-inner { white-s ...
-
是的,不是。 是的,我已经看到了它,不,解决它并不是一件容易的事。 问题是iframe是一个新的浏览器窗口,所以如果鼠标移过它,它就会开始接收事件。 换句话说:鼠标向右移动到iframe,向左移动到主窗口。 如果我需要修复它,我可能会在主窗口中创建一个透明div ,它会在拖动分割器时覆盖iframe,以便主窗口可以继续接收事件。 Yes and no. Yes, I have seen it and no, it is not trivial to solve it. The problem is that ...