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

[Bug] 启动多个next-server服务进程,占用内存 #5363

Open
mt-altman opened this issue Jan 9, 2025 · 9 comments
Open

[Bug] 启动多个next-server服务进程,占用内存 #5363

mt-altman opened this issue Jan 9, 2025 · 9 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@mt-altman
Copy link

mt-altman commented Jan 9, 2025

📦 部署环境

Docker

📌 软件版本

lobehub / lobe-chat-database

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

image 会启动多个next-server服务进程,占用内存挺大的

📷 复现步骤

  • docker启动后能复现

🚦 期望结果

No response

📝 补充信息

docker-compose.yml

version: '3.8'
services:
  lobe-chat:
    image: lobehub/lobe-chat-database
    restart: always
    environment:
      ACCESS_CODE: *****32a
      APP_URL: https://xxx.com
      AUTH_AUTH0_ID: ******2U
      AUTH_AUTH0_SECRET: *****k
      AUTH_AUTH0_ISSUER: https://***.auth0.com
      TZ: Asia/Shanghai
      DATABASE_DRIVER: node
      DATABASE_URL: postgresql://*****/lobe_chat?sslmode=require
      KEY_VAULTS_SECRET: ****k=
      NEXT_AUTH_SECRET: ***cb
      NEXT_AUTH_SSO_PROVIDERS: auth0
      NEXTAUTH_URL: https://***.com/api/auth
      OPENAI_API_KEY: ****9b
      OPENAI_MODEL_LIST: -all,+claude-3-opus-20240229,+claude-3-sonnet-20240229,+claude-3-5-sonnet-20240620,+claude-3-5-sonnet-20241022,+claude-3-haiku-20240307,+gpt-4o,+gpt-4o-mini,+gpt-4-turbo,gemini-1.5-pro-latest,gemini-exp-1206,gemini-2.0-flash-thinking-exp,gemini-2.0-flash-exp,deepseek-chat,+FLUX-pro,jimeng-2.1
      OPENAI_PROXY_URL: https://*****.com/v1
      S3_ACCESS_KEY_ID: ****3
      S3_BUCKET: lobechat
      S3_ENDPOINT: https://****.com
      S3_PUBLIC_DOMAIN: https://*****.com
      S3_SECRET_ACCESS_KEY: *****2
    ports:
      - 3210:3210

No response

@mt-altman mt-altman added the 🐛 Bug Something isn't working | 缺陷 label Jan 9, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 9, 2025
@lobehubbot
Copy link
Member

👀 @mt-altman

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Jan 9, 2025

哪个版本?理论上应该只有一个才对

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Which version? In theory, there should be only one

@mt-altman
Copy link
Author

哪个版本?理论上应该只有一个才对

最新版本

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Which version? In theory, there should be only one

latest version

@cy948
Copy link
Contributor

cy948 commented Jan 10, 2025

@arvinxx 会不会是因为这个bug #5386 导致 next-server 崩了,然后新创建 next-server 服务。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@arvinxx Could it be that this bug #5386 caused next-server to crash and then create a new next-server service?

@cy948
Copy link
Contributor

cy948 commented Jan 10, 2025

可以给个出现问题的版本和稳定复现的操作步骤吗? 在 1.45.5 上没有复现成功。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Can you give me the version where the problem occurred and the steps to reproduce it stably? There is no success in reproducing on 1.45.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

4 participants