磁盘空间爆掉时nginx报错 An error occurred

nginx报错了,消息如下错误如下nginx_Error_disk_empty

An error occurred.

Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.

1分钟前还是好的,至少wordpress后台可以正常打开,突然就成这样子了。静态页面还正常,就ssh上,检查php-fpm进程是正常的,没有僵局。算了,杀死,连nginx一起杀死,虽然这是很不优雅的行为,所不齿的行为。然而结果是没用。随手查了下df -h ,分区满了,怪不得,查了下,删除几个备份文件,然后一切恢复正常了。空间不够,还是个问题,要进一步清理了。

eclipse启动失败,报libxul.so的错误NS_StringGetMutableData_P 处理手记

centos 6.x下折腾了好几天,eclipse,没有使用centos自带的,从eclipse官方下载,但一直报错,错误如下:

[feng@fsc ~]$ /usr/local/eclipse/eclipse 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x807afc5b, pid=3926, tid=3077723840
#
# JRE version: 6.0_33-b04
# Java VM: Java HotSpot(TM) Client VM (20.8-b03 mixed mode linux-x86 )
# Problematic frame:
# C  [libxul.so+0xda8c5b]  NS_StringGetMutableData_P+0x1bdbe
#
# An error report file with more information is saved as:
# /home/feng/hs_err_pid3926.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
已放弃 (core dumped)

前两天也看到了消息里libxul.so的信息,但直到今天google了一下“libxul.so eclipse”才得知在在eclipse.ini最后加入如下两行即可

-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2

之前一直在jre/jdk上找原因,结果是徒劳的。

因为是要安装个android开发环境,android sdk不支持openJDK,而要使用sun/oracle的jdk,所以卸载openJDK、安装sun/oracle JDK,并卸载centos自带的eclipse并从官网下载eclipse并解压缩到/usr/local. 折腾了好几天了。

据网上朋友说原因是Firefox的依赖包xulrunner(负责网页的渲染的模块)与JRE冲突。