Amazon ec2 – VM初始化期间发生错误无法为对象堆预留足够的空间

我没有使用服务器的经验,所以请详细解释您的答案或提供一个链接来支持您的答案。

我想重新启动服务器,并执行命令给出错误

Error occurred during initialization of VM Could not reserve enough space for object heap 

情况是,服务器没有响应并发的API调用的数量,并抛出错误

 (12)Cannot allocate memory: fork: Unable to fork new process 

突然之间,服务器在执行请求时发生故障。

现在,我想我需要重新启动服务器,我试图使用下面的命令,并得到提及的错误。

 ec2-reboot-instances i-idOfInstance 

ulimit-a给出以下信息:

 core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 4566 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 1024 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited