0

我正在使用具有 2GB RAM 的 Basic Droplet。一切都设置好了。但是当我访问该网站时,它会部分加载页面然后挂起。后来进入超时。或以下错误:

在此处输入图像描述

stderr.log文件内容:

2021-11-14 19:26:56.914 [STDERR] FATAL ERROR: NewNativeModule Allocation failed - process out of memory
2021-11-14 19:26:56.915 [STDERR]  1: 0xa1a640 node::Abort() [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.916 [STDERR]  2: 0xa1aa4c node::OnFatalError(char const*, char const*) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.916 [STDERR]  3: 0xb9a62e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.917 [STDERR]  4: 0xb9a9a9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.918 [STDERR]  5: 0x119f613 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, bool, std::shared_ptr<v8::internal::wasm::WasmModule const>) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.919 [STDERR]  6: 0x11a8c27 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, bool, std::shared_ptr<v8::internal::wasm::WasmModule const>) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.919 [STDERR]  7: 0x11a8f26 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::shared_ptr<v8::internal::wasm::WasmModule const>) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.920 [STDERR]  8: 0x11763fb v8::internal::wasm::AsyncCompileJob::CreateNativeModule(std::shared_ptr<v8::internal::wasm::WasmModule const>) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.923 [STDERR]  9: 0x117e314 v8::internal::wasm::AsyncCompileJob::PrepareAndStartCompile::RunInForeground(v8::internal::wasm::AsyncCompileJob*) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.924 [STDERR] 10: 0x11737c9 v8::internal::wasm::AsyncCompileJob::CompileTask::RunInternal() [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.924 [STDERR] 11: 0xc99f93 v8::internal::CancelableTask::Run() [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.925 [STDERR] 12: 0xa89b74 node::PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<v8::Task, std::default_delete<v8::Task> >) [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.925 [STDERR] 13: 0xa8a855 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.926 [STDERR] 14: 0x1373ade  [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.927 [STDERR] 15: 0x1386b75  [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.927 [STDERR] 16: 0x137431f uv_run [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.928 [STDERR] 17: 0xad663f node::worker::Worker::Run() [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.928 [STDERR] 18: 0xad6a78  [lsnode:/usr/local/lsws/xxxxxxxxx/html/node/]
2021-11-14 19:26:56.928 [STDERR] 19: 0x7f2f8ea40609  [/lib/x86_64-linux-gnu/libpthread.so.0]
2021-11-14 19:26:56.928 [STDERR] 20: 0x7f2f8e967293 clone [/lib/x86_64-linux-gnu/libc.so.6]
2021-11-14 19:26:57.450 [STDERR] 2021-11-14 19:26:57.450004 Cgid: Child process with pid: 1383 was killed by signal: 6, core dump: 128

关于为什么会发生的任何想法?我在 Droplet 中使用此图像:https ://marketplace.digitalocean.com/apps/openlitespeed-nodejs

root顺便说一句,在创建文件夹和导入文件等时,我没有创建新用户(仍然使用默认用户)。这可能是个问题吗?

这是 package.json:

{
  "name": "XXXXXXXXXX",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "https": "node server.js",
    "build": "next build",
    "start": "NODE_ENV=production node app.js",
    "start_X": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@next-auth/mongodb-adapter": "^0.0.2-next.285",
    "bootstrap": "5.0.2",
    "date-fns": "^2.25.0",
    "exif-js": "^2.3.0",
    "exifreader": "^3.16.0",
    "formidable": "^1.2.2",
    "mongodb": "^4.1.2",
    "mongoose": "^6.0.1",
    "nanoid": "^3.1.28",
    "next": "11.0.1",
    "next-auth": "^4.0.0-beta.6",
    "react": "17.0.2",
    "react-bootstrap": "^2.0.0-beta.4",
    "react-dom": "17.0.2",
    "swr": "^1.0.1"
  },
  "devDependencies": {
    "eslint": "7.32.0",
    "eslint-config-next": "11.0.1",
    "heroku-ssl-redirect": "^0.1.1"
  }
}
4

0 回答 0