Logging of large object graphes may fill disk quickly 
------------------------------------------------------

                 Key: CDV-754
                 URL: https://jira.terracotta.org/jira//browse/CDV-754
             Project: Community Development
          Issue Type: Bug
    Affects Versions: 2.5.4
            Reporter: Stefan F
            Assignee: Issue Review Board


The produced log file, due to a misconfigured application, needed more than 8GB 
after 2 hours (and would probably be even bigger). I think the reason is a 
class that is not instrumented within a object graph, which causes the whole 
object graph to be logged. However, this object graph did contain some *big* 
byte arrays that made the log file explode:

[SNIP]
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2344] = 0
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2345] = 0
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2346] = 1
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2347] = 7
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2348] = 2
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2349] = 3
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2350] = 6
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2351] = 3
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2352] = 6
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2353] = 0
2008-05-14 13:38:48,745 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2354] = 7
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2355] = 3
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2356] = 1
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2357] = 1
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2358] = 2
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2359] = 2
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2360] = 3
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2361] = 1
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2362] = 2
2008-05-14 13:38:48,746 [btpool0-5] WARN com.terracottatech.dso.runtime -       
                                                             [2363] = 2
[SNIP]

I doubt, that this behavior (which filled my disk and rendered my system 
useless) is desired. well, you could argue, that log files should be on a 
separate partition and I would totally agree. However, most of the information 
in the log is useless and extremely verbose (> 150 characters to display each 
byte in a byte array), so it would probably make sense to improve logging.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to