---
title: "如何为resin的jvm-default.log瘦身"
author: "xitong"
date: "2013-05-09T10:55:00Z"
tags: []
slug: "resin-jvm-default-log"
draft: false
lastmod: "2013-05-09T13:48:07Z"
id: 1865101
url: "https://xitong.iteye.com/blog/1865101"
---

来源于：[http://www.linuxso.com/linuxrumen/1131.html](http://www.linuxso.com/linuxrumen/1131.html)

resin在默认情况下。所有的操作包括运行当中的报错都会一股脑的写入到jvm-default.log。导致jvm-default.log会非常大。可以通过增加&lt;stdout-log path="${resin.home}/log/stdout.log"[time](http://www.linuxso.com/command/time.html)stamp="\[%Y-%m-%d %H:%M:%S.%s]" rollover-period="1D"/&gt; 使与resin运行有关的所有日志全部由jvm-default.log迁移至stdout.log并且可以通过设置rollover-period="1D"（这里指一天生成一个日志）等参数实现日志分割的目的。

检查resin是否启动，查看是否出现“initialized S[tr](http://www.linuxso.com/command/tr.html)uts-Spring integration[su](http://www.linuxso.com/command/su.html)ccessfully”字样！