我的服务器以代码137退出 [英] My server exited with code 137

查看:750
本文介绍了我的服务器以代码137退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C ++ 11,boost :: asio和HDF5编写了一个C ++服务器/客户端对.服务器在一段时间(两天)内运行良好,然后以代码137停止.由于我以无限循环执行了服务器,因此重新启动了服务器.

I wrote a C++ server/client pair using C++11, boost::asio and HDF5. The server was running fine for a some time (2 days), and then it stopped with code 137. Since I executed the server with an infinite loop, it was restarted.

不幸的是,我的错误日志没有提供足够的信息来理解问题.所以我一直在试图理解这段代码的含义.似乎已经达成共识,这意味着它是128+9的错误,而9则意味着该程序已被kill -9杀死.现在我完全不知道为什么会这样.我需要帮助才能找到答案.

Unfortunately, my error logs don't provide sufficient information to understand the problem. So I've been trying to understand what this code means. It seems there's consensus that this means it's an error of 128+9, with 9 meaning that the program was killed with kill -9. Now I'm not sure at all why this happened. I need help to find out.

通过进一步阅读,我发现它可能已被系统杀死,因为它超过了一定的允许执行时间,因此系统杀死了它.现在这并不是不太可能,因为我的Linux服务器是由我的大学提供的,因此他们可以应用某种安全性来做到这一点.我读到了有关Linux中称为timeout的信息. 我的第一个问题是:我怎么知道这是问题的原因?

By reading further, I found out that it could have been killed by the system because it exceeded a certain allowed execution time, and thus the system killed it. Now this is not so unlikely, since my linux server is provided by my university, so they could be applying some kind of security to do this. I read about something called timeout in linux. My first question is: How can I know if this is the cause of the problem?

我的第二个问题是:要了解此问题,我还应该检查什么?你会怎么做?请告知.

My second question is: what should I check also to understand this problem? What would you do? Please advise.

如果您需要任何其他信息,请询问.

If you require any additional information, please ask.

谢谢.

推荐答案

听起来像是内存不足,Linux内存管理器已将SIGKILL发送给您的进程.在这种情况下,您应该检查/var/log/messages文件以查看是否有任何相关内容.那是我要做的第一件事.如果您没有权限,请与系统管理员联系.

Sounds like you have blown through memory limits and your linux memory manager sent SIGKILL to your process. In that case you should check /var/log/messages file to see if there is anything about it. That's the first thing I would do. Check with your sysadmin if you don't have permissions.

这篇关于我的服务器以代码137退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆