hubdog's blog
apache2 内存溢出的解决办法
Submitted by hubdog on Sun, 2013-11-03 20:38apache2 内存溢出的解决办法。
基本每到30天,服务器就会变得很慢。
显示下面的错误信息
Killed process 17360 (apache2) total-vm:239140kB, anon-rss:90524kB, file-rss:11084kB
Out of memory: Kill process 20387 (apache2) score 174 or sacrifice child
首先
sudo /etc/init.d/apache2 stop
停止apache
然后free -m 检查内存使用情况
然后执行
sync
su
echo 3 > /proc/sys/vm/drop_caches
来释放内存,重启apache2
sudo /etc/init.d/apache2 start
网站工具
Submitted by hubdog on Mon, 2013-10-28 08:38运行时动态切换皮肤
Submitted by hubdog on Wed, 2013-10-23 17:32Mobile下拉菜单
Submitted by hubdog on Tue, 2013-10-22 18:11Delphi XE5的一个bug
Submitted by hubdog on Sun, 2013-10-13 08:42Android中使用TWebBrowser的时候要注意,生成google play store的app的时候,xe5有个bug,不能够生成internet访问权限,需要手工修改xml模板
NV12和YV12的区别
Submitted by hubdog on Sun, 2013-10-06 21:33用JNI方法获取WebBrowser的javascript的返回值
Submitted by hubdog on Fri, 2013-09-27 10:37从Delphi调用Intent
Submitted by hubdog on Fri, 2013-09-27 09:03XE5中调用toast
Submitted by hubdog on Thu, 2013-09-26 13:44XE5的Style编辑
Submitted by hubdog on Thu, 2013-09-26 13:36XE5秘笈,让VCL的皮肤用在手机程序里:
=========================
1、就用那个bitmap设计工具,先打开vcl里的皮肤(Program Files (x86)\Embarcadero\RAD Studio\12.0\Redist\styles\vcl里)
2、saveas转换成fmx里的.style文件
3、stylebook控件里load这个转过来的皮肤,搞定!
举例: