ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tracel <tracelister....@gmail.com>
Subject Re: How to troubleshoot a slow client node get()
Date Wed, 13 Jul 2016 08:23:02 GMT
thanks dsetrakyan,

Why use System.out.println()?

I have added the System.out.println(), and keep the log.info() just for
comparison:

                log.info("### Before get()"); 
                System.out.println("##~ Before get()"); 
                Vendor vendor = cache.get(vendorCode); 
                System.out.println("##~ After  get()"); 
                log.info("### After  get()"); 



The System.out was captured by log4j like this so they also marked as [INFO]
    log4j.appender.stdout.Threshold=INFO
    log4j.appender.stdout.Target=System.out



Here's the log output:

    16:17:06,861 [ INFO] CacheService:150 - ### Before get()
    16:17:06,862 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,921 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,921 [ INFO] CacheService:156 - ### After  get()
    16:17:11,922 [ INFO] CacheService:150 - ### Before get()
    16:17:11,922 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,933 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,934 [ INFO] CacheService:156 - ### After  get()
    16:17:11,934 [ INFO] CacheService:150 - ### Before get()
    16:17:11,935 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,940 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,941 [ INFO] CacheService:156 - ### After  get()
    16:17:11,941 [ INFO] CacheService:150 - ### Before get()
    16:17:11,941 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,956 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,956 [ INFO] CacheService:156 - ### After  get()
    16:17:11,957 [ INFO] CacheService:150 - ### Before get()
    16:17:11,957 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,965 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,965 [ INFO] CacheService:156 - ### After  get()
    16:17:11,965 [ INFO] CacheService:150 - ### Before get()
    16:17:11,966 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,969 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,969 [ INFO] CacheService:156 - ### After  get()
    16:17:11,970 [ INFO] CacheService:150 - ### Before get()
    16:17:11,970 [ INFO] CacheService:62 - ##~ Before get()
    16:17:11,975 [ INFO] CacheService:62 - ##~ After  get()
    16:17:11,976 [ INFO] CacheService:156 - ### After  get()




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-troubleshoot-a-slow-client-node-get-tp6250p6258.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message