Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Manak Bisht
I have not defined its value. It works fine if I do, however, I am expecting it to use the default instead. Sincerely, Manak Bisht On Thu, 21 Mar 2024, 19:18 Christopher Schultz, < ch...@christopherschultz.net> wrote: > Manak, > > On 3/21/24 05:38, Manak Bisht wrote: &g

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Manak Bisht
) at org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(ChannelInterceptorBase.java:98) at org.apache.catalina.tribes.group.GroupChannel.heartbeat(GroupChannel.java:154) at org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(GroupChannel.java:692) Sincerely, Manak Bisht

Re: Tomcat not syncing existing sessions on restart

2024-03-10 Thread Manak Bisht
d be looked into deeper to solve the actual problem. I understand that this discussion might be more fit for the dev mailing list, please let me know if you think the above holds merit, and I will move it there. Sincerely, Manak Bisht

Re: [OT] Tomcat not syncing existing sessions on restart

2024-03-01 Thread Manak Bisht
appreciate it. Sincerely, Manak Bisht On Mon, Feb 12, 2024 at 9:07 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Manak, > > On 2/12/24 10:33, Manak Bisht wrote: > > Chris, > > > > On Mon, 12 Feb 2024, 20:52 Christopher Schultz, < > > ch...@chris

Re: [OT] Tomcat not syncing existing sessions on restart

2024-02-12 Thread Manak Bisht
hines) in my main deployment. I just reproduced the problem on the same host to rule out network issues. Sincerely, Manak Bisht

Re: Tomcat not syncing existing sessions on restart

2024-02-08 Thread Manak Bisht
Address bind = java.net.InetAddress.getByName("tomcat"); System.out.println(bind); // Output: tomcat/ip Sincerely, Manak Bisht

Re: Tomcat not syncing existing sessions on restart

2024-02-07 Thread Manak Bisht
I think I have narrowed down the problem. For Tomcat 9 (v9.0.85), using 0.0.0.0 for the local member and receiver works fine. However, the same does not work in Tomcat 8.5 (v8.5.98). Sincerely, Manak Bisht On Fri, Feb 2, 2024 at 9:41 PM Mark Thomas wrote: > On 31/01/2024 13:33, Manak Bi

Re: Tomcat not syncing existing sessions on restart

2024-01-31 Thread Manak Bisht
you please share your server.xml? Did you make any other changes? Sincerely, Manak Bisht >

Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Manak Bisht
I want to obfuscate values of query params for certain URLs, however, I would still like to log the request. Therefore, I cannot use the existing conditionif/conditionunless attributes that AccessLogValve provides. Sincerely, Manak Bisht On Fri, Jan 26, 2024 at 6:18 PM Mark Thomas wrote

How to access the request URL in a custom valve implementation?

2024-01-26 Thread Manak Bisht
Hi, I am trying to extend the AccessLogValve to modify logging behaviour for certain URLs. However, I don't have access to the request object in the AccessLogValve API. So, I am left with regex matching on the CharArrayWriter message object. Is there a better way to do this? Sincerely, Manak

Re: Tomcat not syncing existing sessions on restart

2024-01-26 Thread Manak Bisht
Hi Mark, I tried running your *cluster-test* war example on a stock 8.5.98 installation, however, I am facing the same issue. Session sync does not trigger on restarting a node. Could you please share your configuration? Sincerely, Manak Bisht

Re: Tomcat not syncing existing sessions on restart

2024-01-23 Thread Manak Bisht
version available. I know I am playing very fast and loose with the definition of EOL when the current version is 8.5.98. Since the StaticMembershipInterceptor has been available for a long time, I thought I could make it work without those two features. Sincerely, Manak Bisht On Tue, Jan 23, 2024 at 3

Re: Tomcat not syncing existing sessions on restart

2024-01-22 Thread Manak Bisht
f any more information is required to help debug this issue. Sincerely, Manak Bisht On Sun, Jan 14, 2024 at 11:09 PM Manak Bisht wrote: > Hi, > I am using DeltaManager (static membership) with non-sticky load balancing > on two nodes. I have observed even load, and requests with the same

Tomcat not syncing existing sessions on restart

2024-01-14 Thread Manak Bisht
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}) - Any help would be greatly appreciated. Sincerely, Manak Bisht

Use JAVA/CATALINA_OPTS arguments in server.xml

2023-12-12 Thread Manak Bisht
Hi, is it possible to use values passed as arguments through *JAVA_OPTS *or *CATALINA_OPTS *in the *server.xml*? Sincerely Manak Bisht

channelStartOptions for cluster with static membership

2023-12-12 Thread Manak Bisht
* according to the Tomcat 9.0 documentation ( https://tomcat.apache.org/tomcat-9.0-doc/config/cluster.html). Why does this distinction exist? Sincerely Manak Bisht

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-08 Thread Manak Bisht
t; Why channelStartOptions=3 ? I think this shoudl use the default. I am still not sure why this distinction exists. Sincerely Manak Bisht

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-06 Thread Manak Bisht
Hi Mark Could you please clarify this? On Fri, Dec 1, 2023 at 3:40 PM Manak Bisht wrote: > The channelStartOptions setting is from the documentation > https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html > *"To start a channel without multicasting, you would want to

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-06 Thread Manak Bisht
ders: *In the previous email, I *incorrectly* mentioned that the tag (in the *web.xml*) had been deprecated. The documentation is referring to the *distributable *attribute of the *Manager *component. Sincerely Manak Bisht

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-06 Thread Manak Bisht
ced a lot of load imbalance on my servers due to user usage patterns. I haven't been able to figure out an alternate way to solve that. My session object is also fully/largely immutable, so I am thinking that I won't encounter the parallel requests problem. Sincerely Manak Bisht

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-06 Thread Manak Bisht
s with "0.0.0.0" fixed the issue. Thanks for pointing that out. Sincerely Manak Bisht

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-01 Thread Manak Bisht
Sorry, I forgot to mention, but I am using Tomcat 8.5 Sincerely Manak Bisht On Fri, Dec 1, 2023 at 3:40 PM Manak Bisht wrote: > Thanks for the reply Mark. > > The channelStartOptions setting is from the documentation > https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-01 Thread Manak Bisht
also says that the *distributable *tag is deprecated and ignored since Tomcat 8 (https://tomcat.apache.org/migration-9 ) *"The distributable attribute has been deprecated in 8.0 and specified value is ignored."* Sincerely Manak Bisht On Fri, Dec 1, 2023 at 2:21 PM Mark Thomas wrote: > On 01/12/2023 0

(No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-01 Thread Manak Bisht
* *Node_2* What am I doing wrong here? Any help would be greatly appreciated. Sincerely Manak Bisht

Re: Is it possible to use the PersistentManager with the DeltaManager?

2023-06-13 Thread Manak Bisht
Is it not possible to extract the sessions from the servlet container in my application code? I could elect a node to schedule a periodic serialization to a data store. On restarts, I could deserialize from this store to inject the sessions back into the servlet container. I would handle the

Re: How to implement a cluster with static membership when the StaticMembershipService does not exist in tomcat 8.5?

2023-06-12 Thread Manak Bisht
? Is there some case where both of them need to be used together? Sincerely Manak Bisht

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-12 Thread Manak Bisht
On Tue, Jun 13, 2023 at 1:26 AM Mark Thomas wrote: > Try https://people.apache.org/~markt/dev/cluster-test.war instead. > > Mark > Sure, I will give that a try. But is there some issue with the *carts.jsp *example? Or is it not meant for this purpose?

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-12 Thread Manak Bisht
Thank you for the clarification. Sorry, it took me a while to understand your point. I have successfully changed the cluster settings, For node with http port 8090 ```

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-12 Thread Manak Bisht
Thanks for the response! I did follow this example https://people.apache.org/~markt/dev/server-static-cluster-example.xml. The only difference being that I am using tomcat 8.5 so I am using the StaticMembershipInterceptor instead. In my second email, I have followed this configuration, however I

Is it possible to use the PersistentManager with the DeltaManager?

2023-06-12 Thread Manak Bisht
I am using the DeltaManager to support non-sticky sessions. Every node has a copy of the session information, therefore, there's no issues with this setup in a live application. However, sometimes, in a new build, there are changes which require downtime on all nodes (certain db changes for

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-12 Thread Manak Bisht
I am not sure if the receiver port should be the same or different from the localmember port. However, changing that to 4001 for node with localmember at 8090 and to 4002 for node with localmember at 8190, I am encountering the following error - ``` 12-Jun-2023 15:00:29.885 INFO [main]

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-12 Thread Manak Bisht
On Mon, Jun 12, 2023 at 1:50 PM Mark Thomas wrote: > On 10/06/2023 18:11, Manak Bisht wrote: > > I am trying to run the carts example (*/examples/jsp/sessions/carts.jsp*) > > with two nodes, on ports 8090 and 8190. The nodes are working fine > > individually. However,

How to implement a cluster with static membership when the StaticMembershipService does not exist in tomcat 8.5?

2023-06-12 Thread Manak Bisht
at 8.5 <https://tomcat.apache.org/tomcat-8.5-doc/api/org/apache/catalina/tribes/membership/package-summary.html>. A similar such service exists for multicast (McastService) in both versions. How am I supposed to use static clusters in tomcat 8.5 then? Any help would be greatly appreciated. Sin

Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-10 Thread Manak Bisht
I am trying to run the carts example (*/examples/jsp/sessions/carts.jsp*) with two nodes, on ports 8090 and 8190. The nodes are working fine individually. However, I am trying to create a cluster with static members (without multicast), but I keep encountering the following error - 09-Jun-2023