Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问对vps的配置,最近要求是多少? #53

Closed
justincnn opened this issue May 21, 2023 · 4 comments
Closed

请问对vps的配置,最近要求是多少? #53

justincnn opened this issue May 21, 2023 · 4 comments

Comments

@justincnn
Copy link

1c1g的低配服务器一直运行不起来:

[root@fastgpt-445487 FastGPT]# pnpm build

> [email protected] build /www/wwwroot/FastGPT
> next build

info  - Loaded env from /www/wwwroot/FastGPT/.env.local

./src/hooks/usePagination.tsx
98:6  Warning: React Hook useEffect has missing dependencies: 'defaultRequest' and 'mutate'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps

./src/hooks/usePaging.ts
68:6  Warning: React Hook useEffect has a missing dependency: 'getData'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info  - Linting and checking validity of types .
<--- Last few GCs --->

[4667:0x6c50340]   133280 ms: Scavenge (reduce) 471.5 (482.0) -> 470.5 (482.0) MB, 2.8 / 0.0 ms  (average mu = 0.216, current mu = 0.261) allocation failure; 
[4667:0x6c50340]   133374 ms: Scavenge (reduce) 471.5 (482.0) -> 470.6 (482.0) MB, 3.8 / 0.0 ms  (average mu = 0.216, current mu = 0.261) allocation failure; 
[4667:0x6c50340]   135086 ms: Mark-sweep (reduce) 472.0 (482.2) -> 470.6 (482.2) MB, 1612.6 / 0.0 ms  (average mu = 0.210, current mu = 0.199) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb7a940 node::Abort() [/www/server/nvm/versions/node/v18.16.0/bin/node]
 2: 0xa8e823  [/www/server/nvm/versions/node/v18.16.0/bin/node]
 3: 0xd5c940 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/www/server/nvm/versions/node/v18.16.0/bin/node]
 4: 0xd5cce7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/www/server/nvm/versions/node/v18.16.0/bin/node]
 5: 0xf3a3e5  [/www/server/nvm/versions/node/v18.16.0/bin/node]
 6: 0xf3b2e8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/www/server/nvm/versions/node/v18.16.0/bin/node]
info  - Linting and checking validity of types .. 7: 0xf4b7f3  [/www/server/nvm/versions/node/v18.16.0/bin/node]
 8: 0xf4c668 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/www/server/nvm/versions/node/v18.16.0/bin/node]
 9: 0xf26fce v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/www/server/nvm/versions/node/v18.16.0/bin/node]
10: 0xf28397 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/www/server/nvm/versions/node/v18.16.0/bin/node]
11: 0xf0956a v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/www/server/nvm/versions/node/v18.16.0/bin/node]
12: 0x12ce7af v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/www/server/nvm/versions/node/v18.16.0/bin/node]
13: 0x16fb6b9  [/www/server/nvm/versions/node/v18.16.0/bin/node]
info  - Linting and checking validity of types .
@c121914yu
Copy link
Collaborator

包含数据库的话,内存要2g

@c121914yu
Copy link
Collaborator

可以调整mongo的内存限制,降低mongo内存占用。

@justincnn
Copy link
Author

可以调整mongo的内存限制,降低mongo内存占用。

谢谢,按此项目,MongoDB推荐的最低配置多少?还请指导,谢谢

@c121914yu
Copy link
Collaborator

可以调整mongo的内存限制,降低mongo内存占用。

谢谢,按此项目,MongoDB推荐的最低配置多少?还请指导,谢谢

不影响,这个是影响读写速度,最低几十M都可以

newfish-cmyk pushed a commit to newfish-cmyk/FastGPT that referenced this issue Mar 20, 2024
* perf: plugin http import

* chatBox ui

* perf: name
c121914yu added a commit that referenced this issue Mar 21, 2024
* feat: stop toolCall and rename some field. (#46)

* perf: node delete tip;pay tip

* fix: toolCall cannot save child answer

* feat: stop tool

* fix: team modal

* fix feckbackMoal  auth bug (#47)

* 简单的支持提示词运行tool。优化workflow模板 (#49)

* remove templates

* fix: request body undefined

* feat: prompt tool run

* feat: workflow tamplates modal

* perf: plugin start

* 4.7 (#50)

* fix docker-compose download url (#994)

original code is a bad url with '404 NOT FOUND' return.
fix docker-compose download url, add 'v' before docker-compose version

* Update ai_settings.md (#1000)

* Update configuration.md

* Update configuration.md

* Fix history in classifyQuestion and extract modules (#1012)

* Fix history in classifyQuestion and extract modules

* Add chatValue2RuntimePrompt import and update text formatting

* flow controller to packages

* fix: rerank select

* modal ui

* perf: modal code path

* point not sufficient

* feat: http url support variable

* fix http key

* perf: prompt

* perf: ai setting modal

* simple edit ui

---------

Co-authored-by: entorick <[email protected]>
Co-authored-by: liujianglc <[email protected]>
Co-authored-by: Fengrui Liu <[email protected]>

* fix team share redirect to login (#51)

* feat: support openapi import plugins (#48)

* feat: support openapi import plugins

* feat: import from url

* fix: add body params parse

* fix build

* fix

* fix

* fix

* tool box ui (#52)

* fix: training queue

* feat: simple edit tool select

* perf: simple edit dataset prompt

* fix: chatbox tool ux

* feat: quote prompt module

* perf: plugin tools sign

* perf: model avatar

* tool selector ui

* feat: max histories

* perf: http plugin import (#53)

* perf: plugin http import

* chatBox ui

* perf: name

* fix: Node template card (#54)

* fix: ts

* setting modal

* package

* package

* feat: add plugins search (#57)

* feat: add plugins search

* perf: change http plugin header input

* Yjl (#56)

* perf: prompt tool call

* perf: chat box ux

* doc

* doc

* price tip

* perf: tool selector

* ui'

* fix: vector queue

* fix: empty tool and empty response

* fix: empty msg

* perf: pg index

* perf: ui tip

* doc

* tool tip

---------

Co-authored-by: yst <[email protected]>
Co-authored-by: entorick <[email protected]>
Co-authored-by: liujianglc <[email protected]>
Co-authored-by: Fengrui Liu <[email protected]>
Co-authored-by: heheer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants