这是indexloc提供的服务,不要输入任何密码
Skip to content

AnythingLLM lags and freezes. #2602

@DangerousBerries

Description

@DangerousBerries

I'm using Dockerized AnythingLLM. When I mouse over things like the edit/copy buttons, send new messages, or save edits, AnythingLLM freezes and slows down for something like half a minute. It doesn't seem to use the CPU/GPU much when it lags, can anything be done about that? Why does this happen? This happens specifically in very long chats, but I need that context.

I tried to ask Claude about this...

It told me the lag is likely related to:

React's event handling system dealing with many interactive elements
Browser rendering updates for hover states and UI changes
Large DOM tree traversal in long conversations

Virtual scrolling/windowing should be implemented:

Only render messages currently in view
Reduce active DOM elements
Libraries like react-window or react-virtualized can help

Check if there are any React development modes enabled:

Ensure you're using production builds
Development builds have extra checks that can slow things down

Profile the application:

Use React Developer Tools
Check Chrome/Edge Performance panel
Look for long tasks and render bottlenecks

Metadata

Metadata

Labels

bugSomething isn't workingneeds info / can't replicateIssues that require additional information and/or cannot currently be replicated, but possible bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions