/srv/irclogs.ubuntu.com/2011/09/05/#ubuntu-ie.txt

tdr112morning all10:59
tdr112afternoon11:00
tdr112anyone know a good tool for finding memory leaks on a ubuntu server11:00
tdr112i have tomcat and mysql running on it11:02
tdr112i keep running out of ram11:02
czajkowskitdr112: ask in #ubuntu-server or poke Daviey in here11:03
tdr112thanks a good idea czajkowski11:04
tdr112thanks11:04
tdr112at the moment i dont know if its a java thing or my server set up11:05
slashtomtdr112: you could use munin to monitor the memory usage against time11:06
czajkowskitdr112: Daviey is usally nice and easy to talk to and doesnt mind being poked11:07
tdr112slashtom: i will give that a go11:11
ebeltdr112: use top (or htop) to see which is using the most memory11:12
ebela "memory leak" usually means a bug in the programme that's causing it to use too much memory.11:12
ebelWhich is different from "my programme is using too much memory"11:12
ebelin that case there are other potential causes (a) your server needs more ram (b) you have configured the various programmes to use too much memory, (c) you are trying to get the programmes to do too much11:14
tdr112ebel: to tell you the truth i am not sure if it is the code or my set up , i am just looking at top and see my ram is being eaten up11:14
ebel(a) can be solved with money, (b) can be solved by tweaking the settings of the various programmes (but that might cause (c))11:14
ebel(c) is the hardest since you then have to change your code11:15
ebeltdr112: make sure it's not a case of this: http://www.linuxatemyram.com/11:15
ebelunused ram is wasted ram.11:15
ebelLinux will use ram (if possible) as a disk cache. it makes your server much faster.11:16
ebelDon't look at the ram usage in top to figure out how much ram you have/don't have.11:16
ebelLook at how much swapping is happening.11:16
ebelAlso, if programmes are being killed by OOM (out of memory killer) then you have problems,11:16
ebelIf there is lots of swapping then you don't have a lot of ram.11:17
ebelYou can see how much swapping is happening with "vmstat 1"11:17
tdr112well must look into them , I have just been told by the boss that the server has http://www.linuxatemyram.com/11:17
ebelif you see 0 for si (swap in) and 0 for so (swap out), then you are not swapping and have sufficent ram.11:17
tdr112New window11:18
tdr112Print all11:18
tdr112Ubuntu Memory Leak11:18
tdr11211:18
tdr11211:18
tdr11211:18
tdr11211:18
tdr11211:18
tdr112Inbox X11:18
tdr112ReplyReply11:18
tdr112More11:18
tdr112[Offline] Sacchi Mestry . to me, Jim, Sean, Ameen11:18
tdr112show details Sep 2 (3 days ago)11:18
tdr112Hi Jeffrey,11:18
ebelhehehe, copy paste job.11:18
tdr112Can you please check if there memory leak on Ubuntu (new POAM server).11:18
tdr112Regards,11:18
tdr112Sacchi11:18
tdr112Reply11:18
tdr112fecking hell i hate putty11:18
tdr112anyway thanks all i will double check it11:18
ebelIf the server is swapping (ie run out of ram), then the load will increase, and performance will go to the dogs.11:19
ebelIf the server is not swapping (it's not uncommon for there to be a little bit of swap used), then there is no memory problem now.11:20
tdr112so i should check free -m11:20
ebelThe important thing to look at is the amount of stuff going into or out of swap.11:20
ebelyes "free -m" is your friend11:21
ebelmemory leaks usually mean a bug in your code, and can be identified by you code slowly requireing more memory as time goes on, and requireing restarts11:26
ebelthey are hard to do in the likes of java11:26
ebeli strongly doubt you did not find a memory leak in mysql11:26
ebelHowever your PHB might call any memory problem a 'memory leak'.11:27
tdr112ya , i think it will be more likly the code , i will set up a test ubuntu server and try some things on it firist11:27
ebelfirst look at the live system and see if it's using a lot of memory or swapping. if it isn't, there might be no memory problem.11:28
ebel'premature optimization ...' and all that11:29
tdr112ebel: i use did free -m  and its showing 3gb free ram11:31
tdr112i will ask the PHB to explain what he wants11:31
ebelTell him you've looked into it, and everything is fine.11:32
ebelManagers like to think they are doing something.11:32
tdr112that does sound better11:32
ebeland must be seen to be doing things.11:32
ebelNo point making work for yourself to fix problems that don't exist. :)11:32
ebelWelcome to the world of work.11:32
ebel11:32
tdr112ebel: i dont like it here :)11:33
czajkowskiwhy the :) then11:36
ebelgo back job hunting?11:37
czajkowskihttp://likeknow.com/ *sigh*  really in this day and age :/11:38
ebelI don't think that's a real programming site/project... since it doesn't do anything11:41
czajkowskiindeed11:42
czajkowskiebel: you have mail re DNS20:50
ebelah i see20:53
czajkowskiif you need anything else just shout20:55
* ebel must digest and investigate20:55
czajkowskiif any issues you can login into Rt.u.c and comment on the ticket20:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!