I have windows batch script which starts a java process. This process runs for a week, the problem is ow a days log file of this process is very huge(around 10 GB). I am facing
If you are logging in log4j you can configure the max file size. See a previous question here
e.g. In the java (rather than the batch file) or in log4j's configuration file *using a suitable max size):
log4j.appender.file.MaxFileSize=1MB