數(shù)據(jù)庫小技巧
只有注冊(cè)用戶登錄后才能閱讀該文。閱讀全文posted @ 2011-09-13 14:48 GavinMiao 閱讀(38) | 評(píng)論 (0) | 編輯 收藏
我在仰望,java之上
posted @ 2011-09-13 14:48 GavinMiao 閱讀(38) | 評(píng)論 (0) | 編輯 收藏
參考文章:
malloc/free和new/delete必須成對(duì)出現(xiàn),以防止內(nèi)存泄露
The job of the garbage collector is to find objects that are no longer needed by an application and to remove them when they can no longer be accessed or referenced. The garbage collector starts at the root nodes, classes that persist throughout the life of a Java application, and sweeps through all of the nodes that are referenced. As it traverses the nodes, it keeps track of which objects are actively being referenced. Any classes that are no longer being referenced are then eligible to be garbage collected. The memory resources used by these objects can be returned to the Java virtual machine (JVM) when the objects are deleted.
So it is true that Java code does not require the programmer to be responsible for memory management cleanup, and that it automatically garbage collects unused objects. However, the key point to remember is that an object is only counted as being unused when it is no longer referenced.
posted @ 2011-09-07 14:04 GavinMiao 閱讀(358) | 評(píng)論 (0) | 編輯 收藏
mysql﹥ show global variables like 'wait_timeout';
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| wait_timeout | 28800 |
+---------------+---------+
我們只要修改mysql5的配置文件“my.ini”(mysql5 installation dir),增加一行:
wait_timeout=31536000interactive_timeout=31536000
重啟生效,需要同時(shí)修改這兩個(gè)參數(shù)。
posted @ 2011-09-06 12:04 GavinMiao 閱讀(392) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-06 10:26 GavinMiao 閱讀(3034) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-05 18:08 GavinMiao 閱讀(342) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-05 17:29 GavinMiao 閱讀(85) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-04 01:53 GavinMiao 閱讀(89) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-03 12:35 GavinMiao 閱讀(399) | 評(píng)論 (0) | 編輯 收藏
posted @ 2011-09-03 00:15 GavinMiao 閱讀(80) | 評(píng)論 (0) | 編輯 收藏