setting heartbeatInterval in web.xml has no effect

Hi all, i’ve been following the tutorial here
Cleaning up resources in a UI
to set the param heartbeatinterval in my xml file, but no matter what value i put, when i start my app it still load the default setting value which is 300 sec. It seem like my value has been overridden. This is how i print out the value for confirmation

log.debug("getHeartbeatInterval my xml = {}", VaadinServiceSession.getCurrent().getConfiguration().getApplicationOrSystemProperty("heartbeatInterval", "60"));
        log.debug("getHeartbeatInterval = {}", VaadinService.getCurrent().getDeploymentConfiguration().getHeartbeatInterval());

and the result is

getHeartbeatInterval my xml = 60
getHeartbeatInterval = 300

and here is how i define for servlet in web.xml

<servlet>
		<servlet-name>Wa Application</servlet-name>
		<servlet-class>my.com.wa.core.WaServlet</servlet-class>
		<init-param>
			<description>Vaadin UI</description>
			<param-name>UI</param-name>
			<param-value>my.com.wa.ui.WaApplication</param-value>
		</init-param>		      		      	
		<init-param>
            <param-name>heartbeatInterval</param-name>
            <param-value>60</param-value>
        </init-param>
		<init-param> 
			<param-name>closeIdleUIs</param-name>
    		<param-value>false</param-value>
    	</init-param> 
		 <load-on-startup>1</load-on-startup>   
			
	</servlet>

Oops. I have no idea how this slipped through unnoticed, but Vaadin tries to query a parameter named “heartbeatRate” instead of “heartbeatInterval”. The former was the original name for this parameter but was renamed.

Thanks for reporting this, will be fixed in beta 6 (ticket
#9987
).

Some times I’m getting the
Communication Problem
when I refresh the page its again comming to the normal State,in what scenarios] i may get this problem? can any one please help me out,Hoping for the answer :slight_smile:

we kept session timeout with 29 and heartbeatInterval with 60

heartbeatInterval
60

<session-config>
    <session-timeout>29</session-timeout>
</session-config>

Hi,
For my own, I understood that the heartbeatInterval should be defined in the context-param of the webb-app not as a servlet init-param.
I have configured it as following and got no issue :

<web-app >
  <session-config>
    <session-timeout>XX</session-timeout> <!-- in minutes = 4h -->
  </session-config>
  <context-param>
    <param-name>heartbeatInterval</param-name>
    <param-value>XX</param-value><!--  in seconds -->
  </context-param>
  <filter>
   ...
  </filter>
  <filter-mapping>
    ...
  </filter-mapping>
  <servlet>
    ...
  </servlet>
..

I did the same im not getting the issue in my local. I’m getting it in the production environment.

Did you solve your problem prasad? I am facing the same problem

I’m Using vaadin 7.4.3 Enkara Dura …
Try to increase the HeartBeat and give a try if you remove that dependency you still get that issues I hope because its default in Vaadin 7 version