Java thread blocking

前端 未结 6 583
半阙折子戏
半阙折子戏 2021-01-01 03:07

i have a problem with my java environement. I\'m running Solr 1.3 (search engine) since more then a year now and suddenly i got alot of trouble with it. All my thread pool

6条回答
  •  时光说笑
    2021-01-01 03:44

    Flushing after each log record is going to expensive if you have very verbose logs.

    A quality fix would be to clean up the logging, probably based around auditing.

    As a quick fix, override StreamHandler.flush or OutputStream.flush to not do so immediately. Only flush once every so often. Note, however that you could potentially lose logging data immediately before a crash if you do this.

提交回复
热议问题