Results 1 to 5 of 5

Thread: Memory Problem

  1. #1
    Join Date
    Mar 2012
    Posts
    9

    Lightbulb Memory Problem

    Hi,

    I've a VPS (CentOs 64 Bit - with 2 gb ram - Intel(R) Xeon(R) CPU X5550 @ 2.67GHz - 8MB Cache) machine and installed Java 1.7 and Wowza 3.1.0.

    When the server is staying without Wowza, it uses %19 of memory. And when i started Wowza, it uses %80 of memory although there isn't any viewers (clients), just only me.

    Here're some informations about the server:


    Messages from ./startup.sh
    Code:
    INFO server server-start Wowza Media Server 3 Trial Edition (Expires: Apr 212) 3.1.0 build1410 -
    INFO server comment - Server License Key: SVRT3-XXXXX-XXXXX-XXXXX-XXXXX-Vx6
    INFO server comment - Maximum Connections: Unlimited
    INFO server comment - Transcoder Streams Available: Unlimited
    INFO server comment - Transcoder Watermark: Yes
    INFO server comment - nDVR Available: Yes
    INFO server comment - DRM Available: Yes
    INFO server comment - Hardware Available Processors: 2
    INFO server comment - Hardware Physical Memory: 678MB/2048MB
    INFO server comment - Hardware Swap Space: 32199MB/32200MB
    INFO server comment - Max File Descriptor Count: 20000
    INFO server comment - Open File Descriptor Count: 44
    INFO server comment - OS Name: Linux
    INFO server comment - OS Version: 2.6.18-308.el5.028stab099.3
    INFO server comment - OS Architecture: amd64
    INFO server comment - Java Name: Java HotSpot(TM) 64-Bit Server VM
    INFO server comment - Java Vendor: Oracle Corporation
    INFO server comment - Java Version: 1.7.0_03
    INFO server comment - Java VM Version: 22.1-b02
    INFO server comment - Java Spec Version: 1.7
    INFO server comment - Java Home: /usr/java/jre1.7.0_03
    INFO server comment - Java Max Heap Size: 711MB
    INFO server comment - Java Architecture: 64
    INFO server comment - Java Locale[user.language]: en
    INFO server comment - Java Locale[user.country]: US
    INFO server comment - Java Locale[file.encoding]: UTF-8
    INFO server comment - Java Timezone[user.timezone]: GMT
    INFO server comment - Java Args[0]: -Xmx800M
    INFO server comment - Java Args[1]: -Djava.net.preferIPv4Stack=true
    INFO server comment - Java Args[2]: -Dcom.sun.management.jmxremote=true
    INFO server comment - Java Args[3]: -Dcom.wowza.wms.runmode=standalone
    INFO server comment - Java Args[4]: -Dcom.wowza.wms.native.base=linux
    INFO server comment - Java Args[5]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaServer
    INFO server comment - Java Args[6]: -Dcom.wowza.wms.ConfigURL=
    INFO server comment - Java Args[7]: -Dcom.wowza.wms.ConfigHome=/usr/local/WediaServer
    INFO server comment - Server runmode: standalone
    INFO server comment - Server native.platform: linux
    INFO server comment - Server threads[h/t]: 10/10
    INFO server comment - CMDInterface now listening: [any]:8083
    INFO vhost vhost-start _defaultVHost_ -
    INFO server comment - _defaultVHost_ threads[h/t]:120/80 home:/usr/local/WowzaMediaServer
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
    INFO server comment - Server.startShutdownHook: Start server shutdown hook
    INFO server comment - Wowza Media Server is started!
    setenv.sh
    Code:
    JAVA_OPTS="-server -Xmx800M"

    Load Values

    Code:
    top - 14:49:19 up 12:14,  2 users,  load average: 0.00, 0.00, 0.00
    Tasks:  57 total,   1 running,  56 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   2097152k total,  1532052k used,   565100k free,        0k buffers
    Swap:        0k total,        0k used,        0k free,        0k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
     3416 root      18   0 1216m 168m  10m S  0.3  8.2   0:04.74 java
        1 root      15   0 10364  744  632 S  0.0  0.0   0:00.52 init
     1137 root      15  -4 12632  680  356 S  0.0  0.0   0:00.00 udevd
     1490 root      16   0  5924  620  500 S  0.0  0.0   0:00.18 syslogd
     1508 named     21   0  160m 4640 1908 S  0.0  0.2   0:00.08 named
     1532 root      18   0 21660  932  716 S  0.0  0.0   0:00.00 xinetd
     1754 root      15   0 38284 1592 1084 S  0.0  0.1   0:00.02 pure-ftpd
     1756 root      18   0 37036 1616 1256 S  0.0  0.1   0:00.00 pure-authd
     3166 root      15   0  113m  35m 1604 S  0.0  1.7   0:06.47 assp.pl
     3269 root      18   0 34848 8380 1564 S  0.0  0.4   0:03.85 perl
     3308 root      15   0 88112 3628 2908 S  0.0  0.2   0:00.00 sshd
     3310 root      15   0 12048 1664 1316 S  0.0  0.1   0:00.01 bash
     3415 root      17   0  9848 1268 1080 S  0.0  0.1   0:00.00 startup.sh
     3538 root      18   0 41400 9748 1700 S  0.0  0.5   0:04.40 perl
     7721 nobody    18   0 78552 3796 1800 S  0.0  0.2   0:00.05 httpd
     7910 root      15   0 12624 1236  952 R  0.0  0.1   0:00.00 top
    13587 root      15   0 20888 1216  588 S  0.0  0.1   0:00.11 crond
    Java version
    Code:
    java version "1.7.0_03"
    Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
    Is it normal that wowza using so much memory although there's not any clients or any other applications on the server?

    Thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    28,380

    Default

    Yes, this is normal. Actually Java is just reserving the memory. This is controlled with Java heap size. Take a look at the Wowza Tuning Guide:

    http://www.wowza.com/forums/content....ormance-Tuning

    Looking at your startup logs, this line shows you have 6g ram, but you only had 2g available when you started Wowza, which indicates that it is not a dedicated Wowza server.

    Hardware Physical Memory: 678MB/2048MB
    Richard

  3. #3
    Join Date
    Mar 2012
    Posts
    9

    Default

    Thanks, rrlanhan. I've checked that guide.

    And there're lots of subjects in the forum about "System Requirements of Wowza". But most of all are 2008's-2010's subjects.

    For today, (Wowza 3.1.0) -> What is your suggest for a recommended system requirements? For about 300 viewers with 200-250 kb. (I've stated this info may be it's necessary to know how big audience we have)

    Thanks again.

  4. #4
    Join Date
    Dec 2007
    Posts
    28,380

    Default

    Generally we recommend a late model quad or dual quad cpu, 4 - 8g ram, 64bit OS and 64bit Java, and 1 - 4gbs nic. For heavy video on demand, a RAID 0 or 1+0 disk array is recommended.

    Richard

  5. #5
    Join Date
    Mar 2012
    Posts
    9

    Default

    Thanks rrlanham,

    Have a nice work.

Posting Permissions

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