Jboss AS7.1.1 "Batch action" timeout?

Discussão em 'StackOverflow' iniciado por Stack, Fevereiro 4, 2021.

  1. Stack

    Stack Membro Participativo

    We have java app deployed on jboss 7.1.1 (EAR). One feauture of this app is to parse large csv/txt files - it takes around 20 minutes up to an hour to finish and return results to the user in form of a table.

    The problem is that after around 5 minutes 'welcome-page/default-page' is showing up (i see in log files that code is still executing, still peforming operations on this file) -> we need to refresh the page and start from scratch and after 5 minutes its happening again...

    App uses struts framework and this batch operation/method is executed as follows (no EJB annotations etc.):

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
    HttpServletResponse response) {
    ActionMessages messages = new ActionMessages();
    try {
    InputStream is = null;
    try {
    ViewBatchForm batchForm = (ViewBatchForm) form;
    if (batchForm.getIdSubmited().equals("true")) {
    is = batchForm.getFilePath().getInputStream();
    MassResolver massResolver = new MassResolver();

    Collection<ParseResult> massResult = massResolver.parse(is, request);


    public Collection<ParseResult> parse(InputStream stream, HttpServletRequest httpRequest)
    throws MassResolverException, SettingsException {


    From what I've found extending this timeout value should help, but not in our case (changed it to 7200 and still getting timeout after 5 minutes):

    <subsystem xmlns="urn:jboss:domain:transactions:1.1">
    <core-environment>
    <process-id>
    <uuid/>
    </process-id>
    </core-environment>
    <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
    <coordinator-environment default-timeout="300"/>
    </subsystem>


    Any ideas what else might cause it?

    Continue reading...

Compartilhe esta Página