Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Monitor and Log bandwidth usage of a specific program in Fedora
New Posts  All Forums:Forum Nav:

Monitor and Log bandwidth usage of a specific program in Fedora

post #1 of 14
Thread Starter 
So, I want to be able to log and monitor the total bandwidth used by a specific program in my server running Fedora 14. The program is running an instance of java (Minecraft server). I'm just curious as to how much data is being used by minecraft over a period of time.

Is there any program that will allow me to do that? A web interface to monitor it over time is a bonus. Gui is preferrable, but CLI is also ok as long as there is a detailed guide on how to set it up.
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #2 of 14
If you know which ports that program is using you may be able to monitor it that way, as long as no other apps are using said ports.
post #3 of 14
Typically network monitoring is done either by interface or by protocol.

Since Minecraft servers typically run on a single port (25565) you can just use something like etherape to monitor traffic to that port.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #4 of 14
Thread Starter 
Quote:
Originally Posted by d-block;12989192 
If you know which ports that program is using you may be able to monitor it that way, as long as no other apps are using said ports.
Quote:
Originally Posted by error10;12989492 
Typically network monitoring is done either by interface or by protocol.

Since Minecraft servers typically run on a single port (25565) you can just use something like etherape to monitor traffic to that port.

Ok thanks. I'll look into using etherape. If you could point me in the right direction on how to set it up, it would be much appreciated - I'm still a novice when it comes to Linux.
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #5 of 14
idk if its in the fedora repos but etherape would just be "yum install etherape" and then just run it as root so it has access to your nic and your good smile.gif

i dont think etherape has logging functions though... :/ its really just a graphical real time monitor of network traffic

cool tool though tongue.gif although it does look like it says ethe-rape to me lol xD they shoulda broke up ethernet better before combining it with ape...
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #6 of 14
Thread Starter 
Quote:
Originally Posted by EntTheGod;12990384 
idk if its in the fedora repos but etherape would just be "yum install etherape" and then just run it as root so it has access to your nic and your good smile.gif

i dont think etherape has logging functions though... :/ its really just a graphical real time monitor of network traffic

cool tool though tongue.gif although it does look like it says ethe-rape to me lol xD they shoulda broke up ethernet better before combining it with ape...

Lol, thats exactly what I thiught too... It looked like ethe-rape to me on first glance too... Lol

But what i really need is the ability to log the traffic. Monitoring it real time is not much if a priority for me as much as logging.
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #7 of 14
Quote:
Originally Posted by shinigamibob;12990459 
Lol, thats exactly what I thiught too... It looked like ethe-rape to me on first glance too... Lol

But what i really need is the ability to log the traffic. Monitoring it real time is not much if a priority for me as much as logging.

its probably something REALLY simple... im pretty sure conky can show how much data has passed over your nic and stuff like that... smile.gif i wouldnt know a program to do it off hand... but i know its possible! lol
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #8 of 14
Thread Starter 
Quote:
Originally Posted by EntTheGod;12990795 
its probably something REALLY simple... im pretty sure conky can show how much data has passed over your nic and stuff like that... smile.gif i wouldnt know a program to do it off hand... but i know its possible! lol

That would be nice except thst I'm running this in a headless fedora laptop which I use as a home server. I've just set the minecraft server to start on startup...
I need a way to monitor the bandwidth remotely via generated webpage or via cli...
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #9 of 14
Quote:
Originally Posted by shinigamibob;12990924 
That would be nice except thst I'm running this in a headless fedora laptop which I use as a home server. I've just set the minecraft server to start on startup...
I need a way to monitor the bandwidth remotely via generated webpage or via cli...

your using a laptop as a server? lol... whatever works i guess XD

btw you should try doing some google-fu some time smile.gif found something that looks like you should check it out in like.. 5 seconds xD link
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #10 of 14
Thread Starter 
Quote:
Originally Posted by EntTheGod;12991296 
your using a laptop as a server? lol... whatever works i guess XD

btw you should try doing some google-fu some time smile.gif found something that looks like you should check it out in like.. 5 seconds xD link

The laptop is quite a recent model: core i3 @ 2.55 Ghz and 4gb of ram.
Fir hard drives, I've connected a couple of internal drives in an enclosure via the esata cable. So far it works like a dream.

I have looked at that link and a couple others thst seem to show the exact same info, but I couldn't find one that logs the data. That's why I turned to OCN
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Monitor and Log bandwidth usage of a specific program in Fedora