Results 1 to 4 of 4

Thread: GC Log

  1. #1
    Join Date
    Sep 2014
    Posts
    5

    Default GC Log

    Hi,

    I tried to create GC log but it's not created.
    is any idea?

    This is my Tune.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <Root>
    	<Tune>
    		<!--
    			HeapSize
    
    			${com.wowza.wms.TuningHeapSizeProduction} - Assumes Wowza Streaming Engine is only application running on server
    			${com.wowza.wms.TuningHeapSizeDevelopment} - Assumes Wowza Streaming Engine is sharing resources with other applications
    
    			or specify heap size directly (ex: <HeapSize>8000M</HeapSize>)
    		-->
    		<!--<HeapSize>${com.wowza.wms.TuningHeapSizeDevelopment}</HeapSize>-->
    			<HeapSize>4096M</HeapSize>
    
    		<!--
    			GarbageCollector
    
    			${com.wowza.wms.TuningGarbageCollectorConcurrentDefault} - Concurrent Collector (recommended)
    			${com.wowza.wms.TuningGarbageCollectorG1Default} - G1 (Garbage First) Collector
    
    			or specify custom GC settings directly (ex: <GarbageCollector>-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=512m</GarbageCollector>)
    		-->
    		<GarbageCollector>${com.wowza.wms.TuningGarbageCollectorConcurrentDefault}</GarbageCollector>
    
    		<!--
    			VM Options - other VM startup options
    
    			${com.wowza.wms.AppHome} - Application home directory
    			${com.wowza.wms.StartupDateTime} - Date and time the server was started
    		-->
    		<VMOptions>
    			<VMOption>-server</VMOption>
    			<VMOption>-Djava.net.preferIPv4Stack=true</VMOption>
    			<VMOption>-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="${com.wowza.wms.AppHome}/logs"</VMOption>
    			<!-- <VMOption>-Duser.language=en -Duser.country=US -Dfile.encoding=Cp1252</VMOption> -->
    			<VMOption>-verbose:gc -Xloggc:"${com.wowza.wms.AppHome}/logs/gc_${com.wowza.wms.StartupDateTime}.log" -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime</VMOption>
    		</VMOptions>
    	</Tune>
    </Root>
    This is wowza start log.

    JVM options :
    Java Args[0]: -Xmx4096M
    Java Args[1]: -XX:+UseConcMarkSweepGC
    Java Args[2]: -XX:+UseParNewGC
    Java Args[3]: -XX:NewSize=256m
    Java Args[4]: -Djava.net.preferIPv4Stack=true
    Java Args[5]: -XX:+HeapDumpOnOutOfMemoryError
    Java Args[6]: -XX:HeapDumpPath="/usr/local/WowzaStreamingEngine/logs"
    Java Args[7]: -verbose:gc
    Java Args[8]: -Xloggc:"/usr/local/WowzaStreamingEngine/logs/gc_02014-41-01-12-41-10.log"
    Java Args[9]: -XX:+PrintGCDetails
    Java Args[10]: -XX:+PrintGCTimeStamps

    Java Args[11]: -XX:+PrintHeapAtGC
    Java Args[12]: -XX:+PrintGCApplicationConcurrentTime
    Java Args[13]: -XX:+PrintGCApplicationStoppedTime
    Java Args[14]: -Dcom.sun.management.jmxremote=true
    Java Args[15]: -Dcom.wowza.wms.runmode=service
    Java Args[16]: -Dcom.wowza.wms.native.base=linux
    Java Args[17]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaStreamingEngine
    Java Args[18]: -Dcom.wowza.wms.ConfigURL=
    Java Args[19]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaStreamingEngine

    environment :
    Wowza Streaming Engine 4 Monthly Edition 4.0.6 build12199

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    Try removing the quotes as that worked on my end.
    <VMOption>-verbose:gc -Xloggc:${com.wowza.wms.AppHome}/logs/gc_${com.wowza.wms.StartupDateTime}.log -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime</VMOption>
    Thanks,

    Matt

  3. #3
    Join Date
    Sep 2014
    Posts
    5

    Default

    it's perfect!!
    Thank you Matt.

  4. #4

    Default

    Thank you for the update. glad to hear you got this working.

    Please let us know if there is anything else we can assist you with in the future.

    Salvadore

Similar Threads

  1. Missing values in log fields in stats log
    By solidx in forum Wowza Streaming Server Java API
    Replies: 3
    Last Post: 12-23-2014, 02:49 AM
  2. Adding a custom log file and custom log fields.
    By arkroan in forum Server Administration Discussion
    Replies: 17
    Last Post: 01-28-2014, 05:59 AM
  3. Replies: 1
    Last Post: 09-24-2012, 03:00 PM

Posting Permissions

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