fix thread break in fileresource and add serverlog pacement