[10:59] morning all [11:00] afternoon [11:00] anyone know a good tool for finding memory leaks on a ubuntu server [11:02] i have tomcat and mysql running on it [11:02] i keep running out of ram [11:03] tdr112: ask in #ubuntu-server or poke Daviey in here [11:04] thanks a good idea czajkowski [11:04] thanks [11:05] at the moment i dont know if its a java thing or my server set up [11:06] tdr112: you could use munin to monitor the memory usage against time [11:07] tdr112: Daviey is usally nice and easy to talk to and doesnt mind being poked [11:11] slashtom: i will give that a go [11:12] tdr112: use top (or htop) to see which is using the most memory [11:12] a "memory leak" usually means a bug in the programme that's causing it to use too much memory. [11:12] Which is different from "my programme is using too much memory" [11:14] in 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 much [11:14] ebel: 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 up [11:14] (a) can be solved with money, (b) can be solved by tweaking the settings of the various programmes (but that might cause (c)) [11:15] (c) is the hardest since you then have to change your code [11:15] tdr112: make sure it's not a case of this: http://www.linuxatemyram.com/ [11:15] unused ram is wasted ram. [11:16] Linux will use ram (if possible) as a disk cache. it makes your server much faster. [11:16] Don't look at the ram usage in top to figure out how much ram you have/don't have. [11:16] Look at how much swapping is happening. [11:16] Also, if programmes are being killed by OOM (out of memory killer) then you have problems, [11:17] If there is lots of swapping then you don't have a lot of ram. [11:17] You can see how much swapping is happening with "vmstat 1" [11:17] well must look into them , I have just been told by the boss that the server has http://www.linuxatemyram.com/ [11:17] if you see 0 for si (swap in) and 0 for so (swap out), then you are not swapping and have sufficent ram. [11:18] New window [11:18] Print all [11:18] Ubuntu Memory Leak [11:18] [11:18] [11:18] [11:18] [11:18] [11:18] Inbox X [11:18] ReplyReply [11:18] More [11:18] [Offline] Sacchi Mestry . to me, Jim, Sean, Ameen [11:18] show details Sep 2 (3 days ago) [11:18] Hi Jeffrey, [11:18] hehehe, copy paste job. [11:18] Can you please check if there memory leak on Ubuntu (new POAM server). [11:18] Regards, [11:18] Sacchi [11:18] Reply [11:18] fecking hell i hate putty [11:18] anyway thanks all i will double check it [11:19] If the server is swapping (ie run out of ram), then the load will increase, and performance will go to the dogs. [11:20] If 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] so i should check free -m [11:20] The important thing to look at is the amount of stuff going into or out of swap. [11:21] yes "free -m" is your friend [11:26] memory 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 restarts [11:26] they are hard to do in the likes of java [11:26] i strongly doubt you did not find a memory leak in mysql [11:27] However your PHB might call any memory problem a 'memory leak'. [11:27] ya , i think it will be more likly the code , i will set up a test ubuntu server and try some things on it firist [11:28] first 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:29] 'premature optimization ...' and all that [11:31] ebel: i use did free -m and its showing 3gb free ram [11:31] i will ask the PHB to explain what he wants [11:32] Tell him you've looked into it, and everything is fine. [11:32] Managers like to think they are doing something. [11:32] that does sound better [11:32] and must be seen to be doing things. [11:32] No point making work for yourself to fix problems that don't exist. :) [11:32] Welcome to the world of work. [11:32] ☺ [11:33] ebel: i dont like it here :) [11:36] why the :) then [11:37] go back job hunting? [11:38] http://likeknow.com/ *sigh* really in this day and age :/ [11:41] I don't think that's a real programming site/project... since it doesn't do anything [11:42] indeed [20:50] ebel: you have mail re DNS [20:53] ah i see [20:55] if you need anything else just shout [20:55] * ebel must digest and investigate [20:56] if any issues you can login into Rt.u.c and comment on the ticket