UnderHost
Knowledgebase Docs

DirectAdmin Statistics: Monitor Performance

Monitor DirectAdmin server statistics. Track bandwidth, disk usage, CPU, email accounts, domains. Optimize performance and identify usage trends.

On this page

DirectAdmin's Statistics module provides real-time insights into your dedicated server's resource usage. Monitor bandwidth consumption, disk space, CPU performance, and email activity. Understanding these metrics helps you optimize server performance, manage costs, and identify problems before they impact customers.

Statistics Overview

The Statistics section in DirectAdmin shows:

  • Server resources: RAM, CPU usage, disk space, bandwidth
  • Domain metrics: Disk usage per domain, bandwidth per site
  • Email activity: Number of email accounts, mailbox sizes
  • Historical data: Trends over days, weeks, months
  • Alerts: Notifications when resources exceed thresholds

Accessing Statistics

As administrator:

  1. Login to DirectAdmin (yourip:2222 or yourdomain.com:2222)
  2. Navigate to Statistics in left menu
  3. View server-wide and per-reseller statistics

As reseller:

  1. Login to DirectAdmin as reseller
  2. Go to Manage ResellerStatistics
  3. View reseller-level and customer domain statistics

As customer:

  1. Login to DirectAdmin user panel
  2. Click Statistics in left menu
  3. View your domain's disk and bandwidth usage

Key Metrics

MetricWhat It MeansWhen to Worry
Disk UsageTotal data stored (website files, email, databases)>80% of quota
BandwidthMonthly data transfer (downloads, uploads)Approaching monthly limit
CPU LoadProcessor usage (should be under 80% average)Consistently >80%
Memory (RAM)Active memory usage>85% consistently
I/O OperationsDisk read/write speedSlow queries or high latency

Bandwidth Monitoring

Understanding bandwidth in DirectAdmin:

  • Monthly bandwidth: Total data transferred (reset on billing date)
  • Bandwidth per domain: Individual domain usage visible in Statistics
  • Bandwidth calculations: Downloads count 100%, uploads count 100%, internal transfers often 0%

If bandwidth exceeds limit:

  • Check which domain consumes most (Statistics shows per-domain breakdown)
  • Look for bandwidth hogs: large file downloads, backups, video streams
  • Review Webalizer reports (DirectAdmin → Statistics → Webalizer)
  • Contact UnderHost support to increase bandwidth limits if legitimate usage

Disk Usage Analysis

Breakdown of disk usage:

  • Website files: HTML, CSS, images, PHP scripts
  • Email: Mailboxes can grow large with spam or forwarding
  • Backups: On-server backups take disk space (keep locally, not on server)
  • Databases: MySQL/MariaDB can consume significant space
  • Logs: Web server logs grow daily

Optimize disk usage:

# Login to DirectAdmin, check domains by size
du -sh /home/username/public_html

# Remove old backups
rm -f /home/username/backups/old-backup.tar.gz

# Compress logs
gzip /home/username/logs/*.log

# Clean email spam folder regularly
# (Users should do this via webmail)

Email Statistics

Monitor email account usage:

  • Number of email accounts created vs. included in plan
  • Total email storage vs. available quota
  • Mailbox sizes (large mailboxes slow down email)
  • Forwarding rules and aliases

Common email issues:

  • Full mailbox: Leads to "quota exceeded" errors for incoming mail
  • Large spam folder: Archive or delete old spam regularly
  • Inactive accounts: Remove unused email accounts to save space

Performance Optimization

Tips based on statistics:

  • High CPU use: Disable resource-heavy WordPress plugins, upgrade to VPS
  • High memory use: Check for runaway processes, contact support
  • Slow response time: Check Webalizer logs for slow page generation
  • Exceeding bandwidth: Optimize images, enable caching, use CDN
  • Near disk limit: Archive old data, remove unused backups, clean logs

Understanding Logs

DirectAdmin logs show:

  • Access logs: Which pages visitors view (Webalizer converts to statistics)
  • Error logs: PHP errors, permission issues, broken scripts
  • Mail logs: Email delivery status, bounce messages

View logs in DirectAdmin:

# Check web access log
tail -100 /home/username/logs/access.log

# Check error log
tail -50 /home/username/logs/error.log

# Check mail log (admin only)
tail -100 /var/log/exim_mainlog
Set up DirectAdmin email alerts

Enable "Statistics" notifications in DirectAdmin settings to receive email when disk usage or bandwidth exceeds thresholds. This gives advance warning before hitting limits.

Related: DirectAdmin backups | DirectAdmin security | Server monitoring

Was this article helpful?

Need DirectAdmin hosting?

DirectAdmin is available for customers who want a lightweight hosting control panel on compatible UnderHost services.

Related articles

Back to DirectAdmin