English 中文(简体)
Monitoring and Prevention Of Systems Limit Crashes For Mnesia In An Erlang System
原标题:

We have a number of cloud servers and I am building a new one to test provision of resources on.

I am getting a fatal crash way before I think I ought to, as some sort of system resource is running out.

=INFO REPORT==== 14-Feb-2010::12:40:14 ===
Setting up: "http://sub48.localhost:9000" as pirate
Mnesia( ares@example.com ): Data may be missing, 
Corrupt logfile deleted: "(...)/sub48.localhost&9000&styles.DCL", {file_error,
"(...)/sub48.localhost&9000&styles.DCL", system_limit} 


=ERROR REPORT==== 14-Feb-2010::12:40:18 ===
Mnesia( ares@example.com ): ** ERROR ** (could not write core file: system_limit)
 ** FATAL ** Cannot open log file "(...)/sub48.localhost&9000&styles.DCL": 
{file_error, "(...)/sub48.localhost&9000&styles.DCL", system_limit}

The operating system is Ubunut 8.04 (LTS) but our other ones are Ubuntu 9.04 and Ubuntu 9.10 - I think we will have to standardise them :(

So my questions are:

  • how can I identify what resource is running out?
  • what proactive monitoring steps can I take to ensure that it doesn t happen again?
  • which system resources, in general, might I be able to exhaust with an Erlang VM, and what monitoring steps I should have in place for them?
最佳回答

There is an erlang module called os_mon which let s you monitor various resources like cpu load. Also check out the sasl OTP application, especially overload and alarm_handler.

问题回答

暂无回答




相关问题
System.out.println and System.err.println out of order

My System.out.println() and System.err.println() calls aren t being printed to the console in the order I make them. public static void main(String[] args) { for (int i = 0; i < 5; i++) { ...

Groovyscript grails system commands

Is there a possibility of running my "grails run-app" command from my groovy script? I tried "cmd /c dir".execute() and it was working but "cmd /c grails run-app" doesn t seem to work :( Can anybody ...

Differences in code between Windows 32 bits and 64 bits

I was experimenting with the following code to simulate GetProcAddress. // Retrieve NT header from base address. IMAGE_NT_HEADERS *GetNtHeaderFromBase( void *pBaseAddr ) { IMAGE_DOS_HEADER *...

How to print bytes in hexadecimal using System.out.println?

I ve declared a byte array (I m using Java): byte test[] = new byte[3]; test[0] = 0x0A; test[1] = 0xFF; test[2] = 0x01; How could I print the different values stored in the array? If I use System....

热门标签