# Cursor IDE Performance Issue - Bug Report
## Issue Summary
Cursor IDE becomes unresponsive after a few minutes of use despite low system resource utilization (~10% CPU, 40% RAM).
## System Information
- **OS**: Linux 6.12.10-76061203-generic (Ubuntu 22.04 derivative)
- **Hardware**: AMD Ryzen 7 7840HS (16 cores), 30GB RAM, NVIDIA RTX 4070 (8GB)
- **Cursor Version**: Running from AppImage
- **Project**: Large Flutter/Firebase project with 16,708 source files
- **Project Type**: Flutter app with multiple modules (functions, hosting, mobile app)
## Diagnostic Process Performed
### 1. System Resource Analysis
- Checked CPU, RAM, GPU utilization - all normal (<40% usage)
- Verified disk space - 188GB available on main partition
- Confirmed file descriptor limits - adequate (1,048,576)
### 2. Process Investigation
**Critical Finding**: Cursor spawning excessive processes
- **Expected**: 10-15 processes
- **Actual**: 30-42 processes
- Multiple renderer processes consuming 12-16% CPU each continuously
- Total renderer memory usage: 5.3%
### 3. Identified Issues
#### A. Process Management Bug
- Cursor spawns up to 42 processes for a single window
- Renderer processes (2) using excessive CPU (12.0% and 16.3% continuously)
- Utility processes multiplying beyond normal limits
#### B. Display Configuration Warning
- System repeatedly reports: `“your 131072x1 screen size is bogus. expect trouble”`
- Actual display configuration is normal (2560x1600)
- This appears to be an internal Cursor rendering issue
#### C. Memory Fragmentation
- Despite low overall usage, memory is fragmented across multiple processes
- No actual memory leak detected, but inefficient allocation pattern
## Optimizations Applied
### 1. System Level
```bash
# Increased file watch limits
echo “fs.inotify.max_user_watches=524288” | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
```
### 2. Launch Optimization Script
Created launch script with flags:
```bash
export NODE_OPTIONS=“–max-old-space-size=4096”
cursor --disable-background-networking \
--disable-client-side-phishing-detection \\
--disable-default-apps \
--disable-features=CalculateNativeWinOcclusion \\
--max-active-webgl-contexts=1 \
--max-renderer-process-count=4
```
### 3. Configuration Optimizations
Recommended settings.json additions:
```json
{
“files.watcherExclude”: {
“**/node_modules/**”: true,
“**/.git/**”: true,
“**/build/**”: true,
“**/.dart_tool/**”: true
},
“workbench.editor.limit.enabled”: true,
“workbench.editor.limit.value”: 10,
“typescript.tsserver.maxTsServerMemory”: 2048
}
```
## Diagnostic Data Collected
1. **Process snapshots** showing 30-42 Cursor processes
2. **Memory analysis** showing 20GB available but fragmented allocation
3. **GPU utilization** normal at 28% with 890MB/8188MB used
4. **File handle count** 421 open files (well within limits)
5. **Cache sizes**:
- CachedData: 244MB
- User settings: 219MB
- Cache: 24MB
## Temporary Workarounds
### Immediate Relief (without restart):
```bash
pkill -f “cursor.*type=utility” # Kills helper processes only
```
### On Restart:
```bash
pkill -f cursor
rm -rf ~/.config/Cursor/Cache
rm -rf ~/.config/Cursor/CachedData
rm -rf ~/.config/Cursor/GPUCache
```
## Reproduction Steps
1. Open large Flutter project (16K+ files)
2. Work normally for 5-10 minutes
3. Open multiple files, use AI features
4. IDE becomes progressively unresponsive
5. Process count grows from ~15 to 30-42
6. UI freezes despite low CPU/RAM usage
## Expected Behavior
- Process count should remain stable (~10-15 processes)
- Renderer processes should idle at <5% CPU
- No progressive performance degradation
## Actual Behavior
- Process count grows continuously (30-42 processes)
- Renderer processes consume 12-16% CPU continuously
- IDE becomes unresponsive after minutes of use
- “Bogus screen size” warnings in process listings
## Impact
Severely impacts productivity - requires frequent restarts or process killing to maintain usability.
## Related Issues
This appears similar to memory leak issues reported in:
- Forum discussions about memory leaks and performance degradation
- Issues with large codebases on Linux systems
## Request
Please investigate the runaway process spawning issue on Linux systems with large projects. The “bogus screen size” warning suggests a rendering pipeline problem that may be triggering excessive process creation.
—
*Report prepared: August 13, 2025*
*Platform: Linux x86_64*
*Project type: Flutter/Dart with Firebase*