Professional Web Applications Themes

Size - UNIX Programming

Hi all, My code(c/c++) runs as a server on a gnu/linux box. it does multithreading, socket and database(oci) stuff. The problem is that by using top I found its "size" and "rss" are around 150M, and it takes 3.7% under " %mem" at run time. Is it normal? if not, any clues on fixing it. TIA -s...

  1. #1

    Default Size

    Hi all,
    My code(c/c++) runs as a server on a gnu/linux box. it does multithreading,
    socket and database(oci) stuff. The problem is that by using top I found its
    "size" and "rss" are around 150M, and it takes 3.7% under " %mem" at run
    time. Is it normal? if not, any clues on fixing it.

    TIA


    -s


    Sam Guest

  2. #2

    Default Re: Size


    "Sam" <samsomewhere.com> wrote in message
    news:wpMJa.16004$6o.7103news.primus.ca...
    > Hi all,
    > My code(c/c++) runs as a server on a gnu/linux box. it does
    multithreading,
    > socket and database(oci) stuff. The problem is that by using top I found
    its
    > "size" and "rss" are around 150M, and it takes 3.7% under " %mem" at run
    > time. Is it normal? if not, any clues on fixing it.
    >
    btw, mem leaks can be detected by using top?


    Sam Guest

  3. #3

    Default Re: Size


    "David Schwartz" <davidswebmaster.com> wrote:
    > Can you paste the actual output of 'top'? You may be misreading it.
    > Also, paste the output of 'free'.
    Top:
    1:45pm up 39 days, 33 min, 4 users, load average: 0.42, 0.49, 0.21
    69 processes: 64 sleeping, 5 running, 0 zombie, 0 stopped
    CPU states: 25.9% user, 7.5% system, 0.0% nice, 66.4% idle
    Mem: 2316656K av, 2308396K used, 8260K free, 440K shrd, 210564K
    buff
    Swap: 2097096K av, 12064K used, 2085032K free 1889972K
    cached
    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
    32070 sam 15 0 108M 108M 3504 R 12.7 4.8 0:48 apisrv
    32069 sam 16 0 108M 108M 3504 S 11.3 4.8 0:48 apisrv
    29665 sam 15 0 1324 1104 1060 S 0.0 0.0 0:00 tcsh
    29744 sam 15 0 1328 1328 796 S 0.0 0.0 0:00 tcsh
    32065 sam 15 0 108M 108M 3504 S 0.0 4.8 0:01 apisrv
    32066 sam 15 0 108M 108M 3504 S 0.0 4.8 0:00 apisrv
    32067 sam 15 0 108M 108M 3504 S 0.0 4.8 0:00 apisrv
    32068 sam 15 0 108M 108M 3504 S 0.0 4.8 0:00 apisrv
    32071 sam 15 0 108M 108M 3504 S 0.0 4.8 0:00 apisrv
    32218 sam 15 0 968 968 760 R 0.0 0.0 0:00 top
    32223 sam 16 0 108M 108M 3504 S 0.0 4.8 0:00 apisrv

    free:
    total used free shared buffers cached
    Mem: 2316656 2311004 5652 440 210656 1892512
    -/+ buffers/cache: 207836 2108820
    Swap: 2097096 12060 2085036

    Interesting thing is that even without running my app (apisrv), the used mem
    will still increase until closes to the total (no zombies), why?


    Sam Guest

  4. #4

    Default size

    Where in freehand do you go to find out the exact size of something?
    FRDEEZ Guest

  5. #5

    Default Re: size

    In article <c2ajp2$spa$1forums.macromedia.com>,
    "FRDEEZ" <webforumsusermacromedia.com> wrote:
    > Where in freehand do you go to find out the exact size of something?
    It depends on what that "something" is. For "primitives" (rectangles &
    ellipses) and ordinary text containers the dimensions are shown in the
    Item Inspector. Other objects, or collections of objects, will also have
    their dimensions displayed there if they're Grouped. (Undo after noting
    the measurements if you don't want them to remain grouped.) Page
    dimensions are shown in the Doent Inspector, and font specifications
    in the Text Inspector. Note that the dimensions shown for a transformed
    object are those of its bounding box, not the object itself: for example
    if you rotate a 1" square by 45 its dimensions will be reported as
    1.414" x 1.414".

    --
    Odysseus
    Odysseus Guest

Similar Threads

  1. Question changing font size in a form field that auto-selects text size
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: June 19th, 04:18 PM
  2. display size on-screen differs from actual size.
    By Mitchell_Henry@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 7
    Last Post: June 14th, 04:36 AM
  3. How do I resize a doent from Poster Size to Letter Size??
    By Lou_Dina@adobeforums.com in forum Adobe Indesign Windows
    Replies: 7
    Last Post: April 21st, 07:21 PM
  4. CAN I CHANGE SIZE (PIXELS) OF A PROJECTOR TO REDUCE THE FILE SIZE?
    By JB in forum Macromedia Director Basics
    Replies: 0
    Last Post: August 3rd, 06:04 PM
  5. Cast Members Size Vs. Total Movie Size
    By PaulaJune webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 0
    Last Post: July 22nd, 06:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139