May 17, 2012

Show memory map of a process

How to show memory map of a process? or how to check how much memory a process is consuming?
Use pmap.

How to use pmap:

  1. get a pid of a process you are interested in checking, in this example apache:
    [mainuser@serverone ~]$ ps -eaf | grep http 
    root      1759  4493  0 04:02 ?        00:00:00 /usr/sbin/httpd
    apache    1760  4493  0 04:02 ?        00:00:25 /usr/sbin/httpd
    apache    1761  4493  0 04:02 ?        00:00:23 /usr/sbin/httpd
    apache    1762  4493  0 04:02 ?        00:00:21 /usr/sbin/httpd
    apache    1763  4493  0 04:02 ?        00:00:18 /usr/sbin/httpd


  2. run the pmap command against the PID number:
    [mainuser@serverone ~]$ sudo pmap 1760 | tail 
    97406000     28K r--s-  /usr/lib/gconv/gconv-modules.cache
    97463000     16K rw---    [ anon ]
    97467000 524288K rw-s-  /tmp/apc.tE1RRo (deleted)
    b7467000  11096K r----  /usr/local/zend/lib/libicudata.so.38
    b7f3d000      4K rw---  /usr/local/zend/lib/libicudata.so.38
    b7f3e000     64K rw-s-  /dev/zero (deleted)
    b7f4e000    504K rw-s-  /dev/zero (deleted)
    b7fcc000     32K rw---    [ anon ]
    bfd74000    144K rwx--    [ stack ]
    total  2742152K
     
  3. The process, which is apache is consuming about 2.7GB of memory
That's all folks :)


May 16, 2012

Cook an android rom with dsixda kitchen part 2

Here's a screencast about cooking an android rom, in this case an i8150 rom, with dsixda-kitchen. I've had good luck cooking roms for htc, sgs2 and sgw. In essence, we have to download dsixda-kitchen and install. Thanks dsixda for an amazing tool. I'weofije...

i8150 custom dxlm3 (sorta) rooted, deodexed

Custom (sorta) rom from dxlm3, comes with 14 toggles, %5 battery (no time to anything else), brut.all maps, talk with video and beats (not sure working or not) And no, no bootanimation, although the capability is there. soon? quite different comparedweofije...

May 15, 2012

Ubuntu 12.04 LTS Unity Launcher bug workaround

The Unity launcher for Ubuntu 12.04 LTS Precise Pangolin has a bug. When auto hide is enabled, there is a lag when trying to get the panel to show. When working correctly the panel should show when the mouse cursor hits the edge but the bug requires you to move your mouse beyond the edge to get the panel to show. Feels heavy.

There’s no official fix out at the time of this post. Do you?

Currently, the workaround to get the panel working is through a config tweak using the “compizconfig-settings-manager” tool. Here’s how.

1. Download compizconfig-settings-manager tool. Command line or from the app store.

or

danesh@python:~$ sudo apt-get install compizconfig-settings-manager

2. Launch the compizconfig-settings-manager. Go to “Desktop –>  Ubuntu Unity Plugin –> Experimental Tab”.

Change the value for “Launcher Reveal Pressure” to “1″ or what works for you. I have mine set at 10.

Enjoy.

Similar Posts:


Stock LM3 for galaxy w i8150

Here's a quick one. Stock deodexed, rooted and maps. And yes, this one comes with custom boot animation enabled :P Download link soon. Android OS version : 2.3.6 Device : GT-I8150 Model : GT-I8150 ROM Name : kedai-dxlm3-kang CSC version : I8150OLBLD1weofije...

Less than 56 Hours to FUDCon Kuala Lumpur 2012

Our swags and T-Shirt arrived today. With just less than 56 hours left to FUDCon Kuala Lumpur, we are starting to feel the heat.

We have sent out our guidebook yesterday to registered attendees (which reached 460 registrants today). For those how just registered and did not receive it, download it by clicking this link.

Swag pics:

lanyards(300units)

buttons (500units)

stickers (350units)

No T-shirt (170units) picture? .. well .. its in a huge thick plastic wrap and I do not want to open it yet as it'll be difficult to store afterwards.

Remember that swags are limited and are given by early register early & early arrive basis. The early 50 registrants on the website (excluding crew & volunteers) we will hold on to your swags for until 9:30AM, if you did not turn up by then, we'll give it away to those who arrived early.

We plan to open the registration booth on 8:30AM Friday.

See you on Friday!

- Izhar -

RabbitMQ PHP in Ubuntu 12.04

Testing RabbitMQ PHP in Ubuntu 12.04 Examples for AMQP in official PHP site (last check 2012/05/15) not sync with API for PECL 1.0.1. This is my version to test simple php amqp emit_log.php: // Create a connection $cnn = new AMQPConnection(array('login'=>'guest', 'password'=>'abc123')); $cnn->connect(); // Create a channel $ch = new AMQPChannel($cnn); // Declare a new exchange $ex = new

May 14, 2012

How to install Java 7 on Ubuntu 12.04 LTS

Oracle JDK is no longer included by default in Ubuntu’s repositories due to licensing. OpenJDK is default now but many apps still don’t play nice with it. This is why I installed Oracle JDK.

I’ll walk you through the process of installing Oracle JDK 7 on Ubuntu 12.04 LTS Precise Pangolin, the easy way. For this we will use the “install oracle-java7-installer” package from “WEBUPD8″.

The “install oracle-java7-installer” package from “WEBUPD8″ will download the official binaries from Oracle and install the JAVA 7 JDK, JRE and browser plugins on your machine.

1. Add the “WEBUPD8″ PPA.

danesh@python:~$sudo add-apt-repository ppa:webupd8team/java 

2. Update your repositories.

danesh@python:~$sudo apt-get update 

3. Install JAVA 7 JDK.

danesh@python:~$sudo apt-get install oracle-java7-installer

To uninstall,

sudo apt-get remove oracle-java7-installer

Did it work for you? Test here

Similar Posts:


May 13, 2012

Cook a rom with dsixda kitchen part 1

These are general instructions on cooking your own ROMs. We need a base. We can choose stock ROMs, custom ROMs or nandroid backups as a base. For Samsung ROMs, we can get stock ROMs from sammobile.com or samsung-updates.com For HTCs, get em from shipweofije...

May 11, 2012

Adding boot animation to a ROM

OK, Built the galaxy w xxlm8 rom but didn't enable custom boot animation. Turned out there are a lot of people who wants one :P So, what you can try: create directory /data/local - chmod 0771 - chown to root with terminal, do this su mkdir /data/locaweofije...

7 Days to FUDCon Kuala Lumpur 2012

 

With FUDCon Kuala Lumpur happening soon starting Friday 18th May 2012, we already have 400+ attendees registered today.

Its exciting, but scary in the same time :-)

Feeds