Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

6

We had the same problem for a file being written by log4j. The solution was to set the property "Append" for the FileAppender to "true". After this change, we have not seen this problem with files having NUL when rotated by an external program like logrotate.


5

Have your application debugged. If you get an OOM after a couple hours, then chances are that something is really wrong with it, and you won't fix it by adding more memory. You'll just add more time until it dies. Furthermore, JBoss 4.1 is very old, so I assume nothing really fancy is running on it. Check the logs for connection leaks, heap dumps and stack ...


5

The JBoss wiki on developer.jboss.org lists a fairly comprehensive list of options which are likely also valid for Wildfly; essentially variations of: Keep the application server on an unpriviliged port and use something that does listen on the privileged port to forward requests to that port: i.e. a Reverse Proxy or load balancer i.e. configure Port ...


4

Either you're not actually using the tmpfs (probably because you're not actually running the copy of your app that you copied to the ramdisk, but there are other possibilities I'll let you explore), or your performance bottleneck wasn't disk in the first place.


4

you can either secure only connection from clients to your balancer and take balancer--workers network as trusted: client<--SSL-->balancer<--AJP/HTTP-->workers or you can secure the whole path (note: Balancer is actually a ManInTheMiddle attack by definition :-), so you will have to trust your balancer implicitly on workers...) client<--SSL-->...


4

My go-to approach for things like this is to use the concat module, which will handle all of the notifications for building the config file itself, and wrap it in application-specific resource definitions. What I mean by that last part is something like this: class jboss { concat { '/path/to/jboss/config/file': owner => 'whoever', group => '...


3

http://yourservernamehere:8080/invoker/EJBInvokerServlet If you've left your configuration as is, the above is available you have a problem. The reason you don't want to do it is pretty clear, it allows anyone to invoke any servlet they want that is on your system. The short answer is, find it in your web.xml and disable it. A Tomcat Specific article ...


3

I know this is an old question, but someone might find this interesting. I had a similar problem where I wanted the monitor the jboss connection pools toward the database. What I did was to create a small shell script that each second minute used curl to fetch the relevant page from JBoss jmx-console. I ended up using something like this in my bash script. ...


3

You can use JMX to get the thread count from java. with the addon jmx4perl you can do JMX calls from a very basic perl script. There is also an addon for Nagios to integrate with j4p for alerting and monitoring of various parameters. http://blog.techstacks.com/2009/09/tomcat-management-jmx4perl-makes-it-easier.html has a few good examples.


3

You could just run a reverse HTTP proxy (Apache, Squid, varnish, nginx) on machine2. This is actually a fairly common configuration with application servers, where a "front-end" proxy is used to provide caching and failover for a backend application. You would then have iptables rules on machine1 that would only allow connectivity from machine 2.


3

Modern OSes are actually pretty good about caching stuff in RAM. The best way to make sure is to force clear the cache (from another stack overflow: sync && echo 1 > /proc/sys/vm/drop_caches) and then the startup (and really only the startup) will be faster.


3

Perhaps late but wanted to point out that EAP5 does have S3_PING support. As for community distribution JBoss AS 7 has that support (what you already know from Kaitsu's replay) but the feature is now supported. For EAP, you could go to the official EAP documentation that describes how to enable clustering with the Red Hat EAP AMIs. For JBoss Application ...


3

Linux itself ran out of memory and killed Java. Your possible solutions would be to make the application use less memory (you can set a memory limit on the Java VM), or increase the memory (EC2 has a high-RAM instance).


3

My question is: If i configured both the http loadbalancing with HAProxy and the AJP/JBoss loadbalancing with mod_jk would i get any benefit? I would do it by using either HAProxy or mod_jk, not both. I don't see any benefit from using multiple tiers load balancer. Another option is using mod_cluster. Give it a try.


3

This is because you're defining two jbossas:makepropies resources with the same name, regardless of the name of the top-level jbossas::instance resource, so both 'node01' and 'node02' are attempting to create jbossas:makepropies with a title of 'kupo.properties'. This is caused by Puppet's lack of full looping ability within manifests. If you declare a ...


3

cant comment yet ... but have you checked your fist line: #!/bin/bash### BEGIN INIT INFO I guess you should try: #!/bin/bash # # chkconfig: 345 90 10 # description: JBOSS 7 # processname: jbossas7 ### BEGIN INIT INFO # Provides: jbossas7 # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $...


3

I have modified the standalone-full.xml while jboss is running. JBoss actively manages the server configuration, and rewrites the XML based on events that take place during its operation. I am assuming that you made these modifications by editing the XML directly using a text editor. While you can do this with little impact while the server is offline, ...


3

The dialog you've the screenshot from is related to RBAC configuration of management interface in JBoss EAP. What you need to change is not the configuration of management interface, but the application interface configuration. In the default server configuration there exist a security domain other which is backed by property files in standalone/...


3

No, your keystore does NOT contain a privatekey. See where it says trustedCertEntry? A trusted certificate is NOT a privatekey, it is only a certificate, and a certificate is not a privatekey. An SSL/TLS server requires a privatekey AND the matching certificate chain; a certificate alone cannot be used to execute the protocol so your server cannot accept any ...


3

If the software is non-trivial and comes with a documented means of shutting it down, as appears to be the case here, go with whatever that is. (There may be multiple options.) Regarding SIGKILL (signal 9) specifically, there's nothing graceful about it. The target process cannot intercept and handle this signal; it's just immediately terminated without ...


2

The cleanup method in use seems to be to edit the bin/run.bat script so that the tmp folder is deleted before JBoss starts. I've got this at the top of run.bat: rem ******** CLEAR TMP, WORK, LOG *************** rmdir /s /q c:\apps\jboss-5.1.0.ga\server\default\tmp rmdir /s /q c:\apps\jboss-5.1.0.ga\server\default\work rmdir /s /q c:\apps\jboss-5.1.0.ga\...


2

In this case you need to configure a balancer. <Proxy balancer://mycluster> BalancerMember ajp://localhost:8109/jconsole BalancerMember ajp://localhost:8110/jconsole </Proxy> <Location /jconsole> ProxyPass balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On </Location> More options can be found at the ...


2

There is now a pretty fresh ajp_module for nginx. I dont have experience with it, but I think the session stickyness and especially the persistent backend connections are quite helpfull for Tomcat. Both methods (http proxy or ajp proxy) are sadly inflexible for longrunning queries (comet) or large file transfers (uploads). https://github.com/yaoweibin/...


2

JBoss 4.2 and later only listens on localhost by default, you need to add -b 0.0.0.0 to your run.sh launcher (init scripts etc) to make it listen on all available interfaces.


2

Start JBoss binding to all IP addresses. run.sh -b 0.0.0.0


2

Found this in another serverfault thread & it seems to work: To get it to run after you exit: Start it with nohup, end it with & I ran it as nohup ./run.sh -b 0.0.0.0 &.


2

http://javahowto.blogspot.in/2006/06/6-common-errors-in-setting-java-heap.html The error seems to be saying that the virtual memory size of the machine is smaller than the maximum heap size we are defining via Xms1303m -Xmx1303m. I have changed it to -Xms256m -Xmx512m and it started working in my local Windows box.


2

This is a bit of a shot in the dark, but: You're using -Xms12288m -Xmx12288m which will only limit the heap portion of your memory. Since your process grew to ~ 50 GB memory usage, this could have been caused by a huge stack. So if your application spawns a lot of threads, heavily relies on recursion or stuff like that, this will be your cue. If that's the ...


2

Garbage collection is not an "issue", it is a core java feature. This runs periodically, even if there is no activity - and yes, the full GC takes a long time, but that's why it only happens once every hour or so. See the official Oracle/Sun documentation for J2SE for details on how it works and how to configure it


Only top voted, non community-wiki answers of a minimum length are eligible