如何知道G1垃圾收集器的区域大小?(How to know region size used of G1 garbage collector?)
我目前正在研究最新Java 8版本的G1 GC。
我有“Humongous Allocation”的问题,所以我想知道我的区域大小有多大。
如何确定区域大小的设置大小?
我怎样才能自己计算区域大小?
谢谢
I'm currently looking into G1 GC in latest Java 8 version.
I have issues with "Humongous Allocation" so I wanna know how big my region size is.
How can I find out how big the region size is set?
How can I calculate the region size myself?
Thanks
原文:https://stackoverflow.com/questions/46786601
最满意答案
例如,使用事件委托附加您的点击处理程序:
$("#idDivTC ul li > img").click(...)
变为$("#idDivTC ul").on("click", "img", ...)
不会为新创建的元素触发该事件,因为它们没有绑定到它们的任何单击事件。
For one, use event delegation to attach your click handlers:
$("#idDivTC ul li > img").click(...)
becomes$("#idDivTC ul").on("click", "img", ...)
.The event isn't fired for the newly created elements because they don't have any click events bound to them.
相关问答
更多-
有什么数据库专业书籍介绍?[2022-05-19]
mysql -
我认为问题是因为你的变量是在javascript上设置的,仅此而已......你可以使用cookie来解决这个问题。 这是$ .cookie ,它可以帮助您解决问题。 代替 var total = 0; 它会是这样的 $.cookie('total',0) 每当你想修改或阅读时,就去做吧 $.cookie('total',$.cookie('total')++); alert('Total actual: '+$.cookie('total')); I think the proble ...
-
例如,使用事件委托附加您的点击处理程序: $("#idDivTC ul li > img").click(...)变为$("#idDivTC ul").on("click", "img", ...) 不会为新创建的元素触发该事件,因为它们没有绑定到它们的任何单击事件。 For one, use event delegation to attach your click handlers: $("#idDivTC ul li > img").click(...) becomes $("#idDivTC ul" ...
-
好吧,我认为您需要使用一对标识符,您的用户ID和字段ID。 对于编辑,只需要fileid,但是当您需要列出所有用户字段时,将需要另一个参考。 Well, I think that you need to use a pair of identifiers, your userid and the field id. For editing only filedid would be enought but when you need to list all the user fields another r ...
-
在DoM元素中使用事件委托来动态创建类 $(".container").on('click', '.box-active', function() { if(isFullscreen){ d.width = "100px"; d.height = "100px"; d.top = 0; d.left = 0; $(this).animate(d, duration); isFullscreen = fa ...
-
如何使用Jquery ajax和php将数据插入mysql数据库?(how to insert data to mysql database with Jquery ajax and php?)[2023-04-17]
当您通过单击submit按钮通过ajax submit ......该条件始终为真。 检查PHP中是否设置了$_POST['submit']将始终生成 true,因为如果不是,则永远不会处理ajax。 所以...删除PHP中的if submit条件并在ajax调用中处理错误通知。 另外,正如@NiettheDarkAbsol在评论中所指出的,将e.preventDefault()添加到jquery也是一个好主意,也可以e.preventDefault()一样停止提交表单的提交按钮,并允许jquery处理提交 ... -
尝试以下任何一项都可以工作1.在onCreate()方法中调用updateList()。 2.调用getListView()。setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { ...
-
首先,考虑从mysql_query切换到PDO预处理语句 。 它重复插入是安全和高效的。 它具有非常直观的语法。 第二:尝试将所有事件存储在更大的JSON批处理中,以向后端发送一个大请求并执行多次插入而不是100次小插入。 此时,您可能正在使用100个并发请求来管理自己的后端。 一些请求被删除,并且ajax异步性质会默默地将它们排除在外。 First, consider switching from mysql_query to PDO prepared statements. It's secure an ...
-
请告诉我们错误: 我认为这部分不完整,需要指定表字段。 $ query =(“INSERT INTO users VALUES('$ firstname','$ middlename','$ lastname')”); 改成 $ query =(“INSERT INTO users(firstname,middlename,lastname)VALUES('$ firstname','$ middlename','$ lastname')”); 或者如果您不想指定,请在字段中输入'' $ query =(“ ...
-
JQuery登录没有响应(JQuery login does not respond)[2023-12-20]
尝试使用此代码。 if($count==1) { session_register("user"); session_register("pass"); $_SESSION['username']=$_POST['user']; $_SESSION['id']=mysql_result($result,0,'id'); echo 'Y'; //header("location:index.html"); } else { die("id atau password anda salah"); exit() ...