Java Heap和Method Area是JVM中内存占用最大的区域,也是监控和调优的重点。 下图使用jvisualvm工具截取,Perm是永久代(Permanent Generation)、Old是年老代(Old Generation)、Eden Space 和S0+S1是年轻代(Y...
分类:
数据库 时间:
2014-12-10 18:19:13
阅读次数:
254
在一些规模稍大的应用中,Java虚拟机(JVM)的内存设置尤为重要,想在项目中取得好的效率,GC(垃圾回收)的设置是第一步。 PermGen space:全称是Permanent Generation space.就是说是永久保存的区域,用于存放Class和Meta信息,Class在被Load的时候...
分类:
编程语言 时间:
2014-12-08 22:38:30
阅读次数:
207
堆内存设置 原理 JVM堆内存分为2块:Permanent?Space 和 Heap Space。 Permanent 即?持久代(Permanent Generation),主要存放的是Java类定义信息,与垃圾收集器要收集的Java对象关系不大。 Heap = { Old + N...
分类:
编程语言 时间:
2014-12-03 14:34:04
阅读次数:
256
我的nginx服务器在香港,直接在nginx配置文件中添加一下内容就可以proxy_cache_pathconf/cache/onelevels=1:2keys_zone=one:10mmax_size=10g;
proxy_cache_key"$host$request_uri";
server{
listen80;
server_nameg.example.com;
access_log/var/log/nginx/access.log;
rewrite..
分类:
其他好文 时间:
2014-12-02 00:23:37
阅读次数:
157
正则表达式匹配,其中:*~为区分大小写匹配*~*为不区分大小写匹配*!~和!~*分别为区分大小写不匹配及不区分大小写不匹配文件及目录匹配,其中:*-f和!-f用来判断是否存在文件*-d和!-d用来判断是否存在目录*-e和!-e用来判断是否存在文件或目录*-x和!-x用来判断文件是否可执行flag..
分类:
其他好文 时间:
2014-11-29 19:02:25
阅读次数:
190
1.
# yum install php
(依赖包顺便把httpd也下了)
# systemctl start httpd.service
# firewall-cmd --add-service=http
(防火墙对http服务解除封锁)
# firewall-cmd --permanent --add-service=http
(防火墙对http服务解除封锁...
分类:
Web程序 时间:
2014-11-23 17:35:51
阅读次数:
285
Show that the inner product $$\bex \sef{x_1\vee \cdots \vee x_k,y_1\vee \cdots\vee y_k} \eex$$ is equal to the permanent of the $k\times k$ matrix $\s...
分类:
其他好文 时间:
2014-11-21 10:20:49
阅读次数:
259
Permanent[m_List] := With[{v = Array[x, Length[m]]}, Coefficient[Times @@ (m.v), Times @@ v]]参考资料:http://mathworld.wolfram.com/Permanent.html
分类:
其他好文 时间:
2014-11-20 23:13:26
阅读次数:
151
几种outofmemory的解决方法:
1. java.lang.OutOfMemoryError: PermGen space
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space。从文字上看就是内存溢出,解决方法是加大内存。为什么会内存溢出,这是由于这块内存主要是被JVM存放Class和Meta信息的,Class在被Load的时候被放入PermGen space区域,它和存放Inst...
分类:
其他好文 时间:
2014-11-05 11:01:49
阅读次数:
214
Memory leakage has been a permanent annoyance for C/C++ programmers. Under MSVC, one useful feature of MFC is report memory leaks at the exit of an ap...
分类:
其他好文 时间:
2014-11-03 13:00:12
阅读次数:
289