Terracotta server log file size

20 views
Skip to first unread message

Jan Hodac

unread,
Oct 20, 2021, 4:29:01 AM10/20/21
to terracotta-oss
Hi, has anybody experience with 

logging.maxLogFileSize and logging.maxBackups

I try to set in my tc-config.xml but it not working. I still have one huge log file.

I use terracotta server from Ehcache 3.x (with clustering) kit

Thanks
John

Jan Hodac

unread,
Oct 20, 2021, 4:33:52 AM10/20/21
to terracotta-oss
2021-10-20 10:31:48,609 [main] INFO com.tc.server.TCServerMain - Terracotta 5.6.5, as of 2019-09-04 at 12:21:32 PDT (Revision 16f7e6193f56415c0d3795afaed3c2b959a534cc from UNKNOWN)
2021-10-20 10:31:48,609 [main] INFO com.tc.server.TCServerMain - PID is 7640
2021-10-20 10:31:48,625 [main] INFO com.tc.properties.TCPropertiesImpl - Loading default properties from tc.properties
2021-10-20 10:31:48,625 [main] INFO com.tc.properties.TCPropertiesImpl - The property "l2.dump.on.exception.timeout" was read before initialization completed. "l2.dump.on.exception.timeout" = 30
2021-10-20 10:31:48,625 [main] INFO com.tc.classloader.ServiceLocator - Entity/Service apis will be loaded from C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\plugins\api
2021-10-20 10:31:48,625 [main] INFO com.tc.classloader.ServiceLocator - Entity/Service implementations will be loaded from C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\plugins\lib
2021-10-20 10:31:48,741 [main] INFO com.tc.config.DefaultConfigurationProvider - Attempting to load configuration from the file at 'C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\conf\tc-config.xml'...
2021-10-20 10:31:49,010 [main] INFO com.tc.config.DefaultConfigurationProvider - Successfully loaded configuration from the file at 'C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\conf\tc-config.xml'
2021-10-20 10:31:49,026 [main] INFO com.tc.config.DefaultConfigurationProvider - The configuration specified by the configuration file at 'C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\conf\tc-config.xml':

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <plugins>
        <config>
            <ohr:offheap-resources xmlns:ohr="http://www.terracotta.org/config/offheap-resource">
                <ohr:resource name="primary-server-resource" unit="MB">1024</ohr:resource>
            </ohr:offheap-resources>
        </config>
    </plugins>
    <tc-properties>
        <property name="logging.maxLogFileSize" value="50"/>
        <property name="logging.maxBackups" value="10"/>
    </tc-properties>
    <failover-priority>
        <availability></availability>
    </failover-priority>
    <servers>
        <server host="10.0.107.21" name="server1" bind="0.0.0.0">
            <logs>C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\logs.server1</logs>
            <tsa-port bind="0.0.0.0">9410</tsa-port>
            <tsa-group-port bind="0.0.0.0">9430</tsa-group-port>
        </server>
        <server host="10.0.107.21" name="server2" bind="0.0.0.0">
            <logs>C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\logs.server2</logs>
            <tsa-port bind="0.0.0.0">9411</tsa-port>
            <tsa-group-port bind="0.0.0.0">9431</tsa-group-port>
        </server>
        <client-reconnect-window>120</client-reconnect-window>
    </servers>
</tc-config>

2021-10-20 10:31:49,041 [main] INFO com.tc.properties.TCPropertiesImpl - The property "logging.maxLogFileSize" was overridden to 50 from 512 by the tc-config file
2021-10-20 10:31:49,041 [main] INFO com.tc.properties.TCPropertiesImpl - The property "logging.maxBackups" was overridden to 10 from 20 by the tc-config file
2021-10-20 10:31:49,041 [main] INFO com.tc.l2.logging.TCLogbackLogging - Log file: C:\hodac\tmp\terracotta\ehcache-clustered-3.8.1\logs.server1/terracotta.server.log
2021-10-20 10:31:49,074 INFO - Available Max Runtime Memory: 1820MB
2021-10-20 10:31:49,477 WARN - Running the server in AVAILABILITY mode with the risk of split brain scenarios.
2021-10-20 10:31:54,677 INFO - Terracotta Server instance has started up as ACTIVE node on 0:0:0:0:0:0:0:0:9410 successfully, and is now ready for work.
2021-10-20 10:31:54,677 INFO - Moved to State[ ACTIVE-COORDINATOR ]

Dne středa 20. října 2021 v 10:29:01 UTC+2 uživatel Jan Hodac napsal:
Reply all
Reply to author
Forward
0 new messages