Skip to main content

Performance Optimization

Keep CastellanAI running smoothly with minimal impact on your systems.

Quick Performance Checks

If you're experiencing performance issues, start with these quick checks:

SymptomQuick Fix
Dashboard loading slowlyNarrow the time range filter (use "Last 1 Hour")
Agent using too much CPUEnable Smart Filtering in agent settings
Events appearing delayedCheck agent connectivity status

Dashboard Performance

Slow Page Loading

What you see: Dashboard pages take more than 5 seconds to load.

How to fix:

  1. Use shorter time ranges

    • Select "Last 1 Hour" or "Last 24 Hours" instead of longer ranges
    • Large time ranges mean more data to process
  2. Apply filters

    • Filter by severity (e.g., "High and Critical only")
    • Filter by event type or specific devices
    • Fewer events = faster loading
  3. Clear browser cache

    • Old cached data can slow things down
    • Press Ctrl+F5 to refresh and clear cache
  4. Reduce auto-refresh frequency

    • Go to SettingsDisplay
    • Change auto-refresh from 5 seconds to 30 seconds or manual

Search Taking Too Long

What you see: Event searches take more than 10 seconds.

How to fix:

  1. Narrow your search criteria - Add more specific filters
  2. Use shorter date ranges - Search within last 24 hours first
  3. Search during off-peak hours - If possible, run large searches when system load is lower

Agent Performance

Agent Using Too Much CPU

What you see: Agent process consuming more than 15% CPU consistently.

How to fix:

  1. Go to DevicesAgents in the Portal
  2. Select the affected agent
  3. Open the Settings tab
  4. Make these changes:
SettingRecommended Value
Smart FilteringEnabled
Monitoring ModeBalanced (not Comprehensive)

Agent Using Too Much Memory

What you see: Agent using more than 500 MB of RAM.

How to fix:

  1. Update to the latest agent version

    • Go to DevicesUpdates
    • Install any available agent updates
  2. Restart the agent service

    • This clears any accumulated memory usage
    • The agent will restart automatically if configured
  3. Reduce monitoring scope

    • Disable monitoring for event channels you don't need
    • Focus on Security events for most systems

Events Taking Too Long to Appear

What you see: Events take more than 30 seconds to show up in dashboard.

How to fix:

  1. Check agent connectivity

    • Go to DevicesAgents
    • Verify the agent shows as "Online" (green)
  2. Check network conditions

    • High network latency or packet loss delays event transmission
    • Contact your IT team to check network health
  3. Verify smart filtering settings

    • Low-priority events are batched and sent periodically
    • Critical events should appear within seconds

Optimizing for Your Environment

Production Servers

For servers running critical applications:

RecommendationWhy
Enable Smart FilteringReduces CPU usage significantly
Focus on Security channelOther channels may be noisy
Monitor during maintenance windowsReview settings during low-usage periods

Workstations

For end-user devices:

RecommendationWhy
Use "Balanced" monitoring modeLess impact on user experience
Monitor Security events onlyReduces data volume
Schedule updates for off-hoursAvoid interrupting users

High-Volume Environments

For systems generating many events:

RecommendationWhy
Increase batch intervalReduces network overhead
Enable aggressive filteringDrops low-value events earlier
Consider Enterprise tierHigher rate limits and retention

Monitoring System Health

Check overall system performance from the dashboard:

  1. Go to SettingsSystem Status
  2. Review key metrics:
MetricHealthyWarningCritical
Agent CPU UsageUnder 5%5-15%Over 15%
Event Processing DelayUnder 10 sec10-30 secOver 30 sec
Agent MemoryUnder 200 MB200-500 MBOver 500 MB

What's Next?