Originally created by @TedLin1993 on GitHub (Oct 1, 2024).
Bug Report
Description
Bug Summary:
When the version reaches or exceeds 0.3.22, memory usage will significantly increase from approximately 300MB to 600MB. This poses a substantial cost difference for serverless systems. I hope someone can identify the cause and resolve this issue.
Reproduction Details
Environment Varaible:
DATABASE_URL: postgresql://xxx
OPENAI_API_KEY: sk-xxx
RAG_EMBEDDING_ENGINE: openai
AUDIO_STT_ENGINE: openai
ENABLE_OLLAMA_API: false
Steps to Reproduce:
I deployed different versions of Open WebUI using Google Cloud Run and monitored the memory usage of each version. In version 0.3.21, the memory usage was around 300MB (with a set limit of 1GB)
Whereas when the version was upgraded to 0.3.22, the memory usage surged to approximately 600MB:
Originally created by @TedLin1993 on GitHub (Oct 1, 2024).
# Bug Report
## Description
**Bug Summary:**
When the version reaches or exceeds 0.3.22, memory usage will significantly increase from approximately 300MB to 600MB. This poses a substantial cost difference for serverless systems. I hope someone can identify the cause and resolve this issue.
## Reproduction Details
Environment Varaible:
- DATABASE_URL: postgresql://xxx
- OPENAI_API_KEY: sk-xxx
- RAG_EMBEDDING_ENGINE: openai
- AUDIO_STT_ENGINE: openai
- ENABLE_OLLAMA_API: false
**Steps to Reproduce:**
I deployed different versions of Open WebUI using Google Cloud Run and monitored the memory usage of each version. In version 0.3.21, the memory usage was around 300MB (with a set limit of 1GB)

Whereas when the version was upgraded to 0.3.22, the memory usage surged to approximately 600MB:

As you can see, the memory usage remains the same.
@TedLin1993 commented on GitHub (Oct 1, 2024):
I switch version from 0.3.22 to 0.3.30:

As you can see, the memory usage remains the same.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @TedLin1993 on GitHub (Oct 1, 2024).
Bug Report
Description
Bug Summary:
When the version reaches or exceeds 0.3.22, memory usage will significantly increase from approximately 300MB to 600MB. This poses a substantial cost difference for serverless systems. I hope someone can identify the cause and resolve this issue.
Reproduction Details
Environment Varaible:
Steps to Reproduce:
I deployed different versions of Open WebUI using Google Cloud Run and monitored the memory usage of each version. In version 0.3.21, the memory usage was around 300MB (with a set limit of 1GB)

Whereas when the version was upgraded to 0.3.22, the memory usage surged to approximately 600MB:
@justinh-rahb commented on GitHub (Oct 1, 2024):
Try 0.3.30, that's the current latest.
@TedLin1993 commented on GitHub (Oct 1, 2024):
I have tried, the memory usage still significant high.
@TedLin1993 commented on GitHub (Oct 1, 2024):
I switch version from 0.3.22 to 0.3.30:
As you can see, the memory usage remains the same.