loo-y / GeminiChatUp

https://chatup.moca.one
87 stars 10 forks source link

似乎本地运行崩溃的概率较高。 #4

Open ViperGash opened 5 months ago

ViperGash commented 5 months ago

不太清楚是什么原因。本来用nohup跑的。但是似乎几个小时内就消失了。多次测试都这样。现在改成了pm2。一天下来发现pm2统计他重启了16次。服务器性能应该是满足的。也没有高负载的状态。不清楚具体原因。pm2的log记录内容不多。看了下nohup的日志。具体如下

▲ Next.js 14.0.4

warning package.json: "dependencies" has dependency "postcss" with range "8.4.28" that collides with a dependency in "devDependencies" of the same name with version "^8" warning package.json: "dependencies" has dependency "tailwindcss" with range "3.3.3" that collides with a dependency in "devDependencies" of the same name with version "^3.3.0" warning package.json: "dependencies" has dependency "typescript" with range "5.1.6" that collides with a dependency in "devDependencies" of the same name with version "^5" ✓ Ready in 4.2s ○ Compiling / ... ✓ Compiled / in 8.9s (2542 modules) WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering ✓ Compiled in 2.2s (1258 modules) ○ Compiling /favicon.ico ... ✓ Compiled /favicon.ico in 1499ms (1312 modules) ○ Compiling /middleware ... ✓ Compiled /middleware in 868ms (75 modules) ○ Compiling /api/geminicontent ... ✓ Compiled /api/geminicontent in 724ms (197 modules) Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ⨯ uncaughtException: Error: aborted at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:531:35) at TCP. (node:net:337:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering

问了下gpt。是因为3个版本的问题么?

loo-y commented 5 months ago

持续报错导致的内存升高吧。可以使用非stream 模式看看

3个版本是什么意思?

ViperGash commented 5 months ago

持续报错导致的内存升高吧。可以使用非stream 模式看看

3个版本是什么意思?

warning package.json: "dependencies" has dependency "postcss" with range "8.4.28" that collides with a dependency in "devDependencies" of the same name with version "^8" warning package.json: "dependencies" has dependency "tailwindcss" with range "3.3.3" that collides with a dependency in "devDependencies" of the same name with version "^3.3.0" warning package.json: "dependencies" has dependency "typescript" with range "5.1.6" that collides with a dependency in "devDependencies" of the same name with version "^5" 就是这三个版本。。应该是内存的问题。昨天到目前没有任何问题。。