JAVA 开发常遇到的问题汇总

作者:じ☆ve宝贝

发布时间:2015-11-09T16:30:54

1、QQ互联开启防火墙后连接超时?

原因是因为没有开启443端口。

2、WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

警告:过量使用内存设置为0!在低内存环境下,后台保存可能失败。为了修正这个问题,请在/etc/sysctl.conf 添加一项 'vm.overcommit_memory = 1' ,然后重启(或者运行命令'sysctl vm.overcommit_memory=1' )使其生效。.按这个提示来做,警告排。

3、 mysql启动报错: InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. 注意:"Check that you do not already have another mysqld process " 即:"请检查您还没有另一个mysqld进程".

 ps aux |grep mysq*  //输入命令 ps aux |grep mysq* 查看mysql进程
 kill  number //关闭启动的进程

4、Specified VM install not found异常解决 使用ant编译项目的时候出现,Specified VM install not found: type Standard VM, name jre6 解决方法:删除工作目录下--.metadata.plugins\org.eclipse.debug.core.launches

文件夹中的所有文件; 重启eclipse,ok