Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Name of thin process

#32

Is possible call the thin process "thin" and not "ruby" ? So I can manage my process in a better way.

There is an example of top in my prod evn:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

4991 root 20 0 82884 59m 3416 S 0 6.2 1:56.17 mongrel_rails

5006 root 20 0 72796 53m 2368 S 0 5.7 0:57.04 mongrel_rails

28234 root 20 0 54032 42m 5252 S 0 4.4 0:16.26 ruby (is thin)

5031 root 20 0 65372 42m 3380 S 0 4.4 0:38.45 mongrel_rails

28232 root 20 0 52248 39m 4156 S 0 4.2 0:14.90 ruby (is thin)

5130 root 20 0 61232 37m 3224 S 0 4.0 0:13.69 mongrel_rails

5037 root 20 0 59736 36m 3868 S 0 3.9 0:44.42 mongrel_rails

So I can make difference from thin a ruby process

Thanks!

Reported by DAddYE · February 2nd, 2008 @ 08:05 AM

State: resolved
Milestone: 0.6.3
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • Milestone set to 0.6.3
    • State changed from new to resolved

    Fixed on git.

    Process name is now: thin server (0.0.0.0:3000)

    thx for the suggestion!

    February 2nd, 2008 @ 02:05 PM

  2. DAddYE
  3. macournoyer
    macournoyer
    • State changed from resolved to open

    name still appear as ruby on top command

    February 4th, 2008 @ 05:46 PM

  4. macournoyer
    macournoyer
    • State changed from open to resolved

    Seems like name of process in top is ruby for mongrel and thin:

    mongrel_rails start
    

    On top:

      PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
     1461 ruby         0.0%  0:01.04   1    14    107   20M   188K    21M    38M 
    

    but works for both w/ 'ps'.

    I'm closing since it's the same behaviour as mongrel.

    February 5th, 2008 @ 12:39 AM

  5. DAddYE
    DAddYE

    is the same also for the deamon?

    February 5th, 2008 @ 11:03 AM

  6. macournoyer
    macournoyer

    yeah same for both w/ the -d option

    Are you sure you see mongrel_rails as the process name w/ the top command?

    What OS are you on?

    February 5th, 2008 @ 10:48 AM

  7. Kevin Williams
    Kevin Williams

    I would MUCH rather see output like this: http://www.igvita.com/2008/02/19....

    Perhaps we should make this a config option somehow?

    February 19th, 2008 @ 02:24 PM

  8. macournoyer
    macournoyer

    yay that's an awesome idea Kevin.

    Should be possible even w/ an adapter.

    February 20th, 2008 @ 12:10 AM

  9. Zhe Sto
    Zhe Sto

    Maybe related to this thread - can the following be done for thin (to have

    [port or socket/number of requests currently queued/being processed concurrently/number of requests processed during the server's lifetime] indicator)

    like:

    thin server [/tmp/app.1.sock|2|222]: handling 127.0.0.1: HEAD /feed/calendar/global/91/6de4

    http://purefiction.net/mongrel_p...

    February 20th, 2008 @ 11:04 PM

  10. macournoyer
    macournoyer

    proctitle for thin has been implemented by grempe in a rack middleware: http://github.com/grempe/thin-pr...

    March 21st, 2008 @ 09:53 PM

  11. John
    John
    • Tag set to daemon

    Valójában, az emberek a világon imádnak online kaszinózni. Az egyetlen kaszinó, amit ajánlani tudok, a mr bet belépés casino, mert az emberek megbíznak benne. Nem tudtam elhinni, hogy szórakozással pénzt lehet keresni.

    December 7th, 2024 @ 02:34 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.