Currently, my setup involves utilizing AjaxtermJ (a Java version of Ajaxterm). The Ajaxterm client-side includes a javascript function that consistently sends heartbeats to the server every second, regardless of user interaction.
In order to optimize the performance of the server, I am interested in stress testing it. However, I have not yet come across a straightforward method to replicate this action.
HtmlUnit does offer some level of headless javascript support, but from my experience, it falls short when attempting to simulate this specific behavior. I am curious if there are more advanced and updated tools available nowadays to simplify this process, especially considering the prevalence of javascript-heavy clients.
While I could develop custom java code for JMeter that initiates a thread responsible for sending heartbeats every second, I would prefer to explore alternative solutions before pursuing such an approach.
On a side note, it's important to clarify that I am not seeking software recommendations (acknowledging the rules). Although, it is plausible that a particular framework may provide the solution. My primary query revolves around how I can emulate this behavior during a stress test.