Hot answers tagged

17

For nginx checkout their docs here. Proxy support is built in. In the example below from their site, you will see that specific port 80 traffic is being sent to a single servlet container running on port 8080. Note that if you want to run multiple backend servlet containers ( for load balancing, scaling, etc... ) you should look at the Upstream Fair ...


6

We have studied relative performance of JBoss vs. Glassfish, and found that Glassfish scales much better under high loads.


5

you may want to try your questions over at stackoverflow.com. At my company the programming teams set up those application servers and then work with production support. We keep JBoss in our repository because of all the configuration changes and each server we deploy needs to be slightly modified. I've enjoyed playing with JBoss and the people in the ...


5

As already mentioned, you're probably experiencing leaking class loaders. For some reason your classes are not being unloaded. This can happen for two reasons Objects of said classes still exist on the heap, objects always reference their class, orThe class loader is referenced somewhere, for whatever reason, class loaders reference their classes in order to ...


5

Well first off, JDBC and ODBC are not compatible. JDBC was Java's answer to ODBC, and they fill the same niche, but you can't connect to an ODBC data source using JDBC and vice versa. Now there IS a jdbc-odbc bridge in Java, but that is a compatibility hack, not a native connector (The translation will go JDBC->ODBC->(Target Database) rather than JDBC->(...


4

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.


4

From my experience - and the reason that we do not use logrotate with Log4j is that the way logrotate works is that it renames the files, then instructs the program to close its logs and reopen them with the old file name (which does not exist anymore), normally using the HUP signal. But Log4j cannot be told to reopen its log files, so I see you use ...


4

The default is admin/admin. You can find and modify this in: server/default/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties Information can be found online (on page 3): JBoss Admin Console Quick Start Guide


4

One reason is that some organizations standardize on a particular application server and insist that all Java application run on that application server. Another reason would be that the person installing Jira may be more comfortable working with JBoss than Tomcat. There is no advantage to running Jira in JBoss and the performance may be slower if the ...


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

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 ...


3

You should try to run your script in a "screen". http://www.linuxmanpages.com/man1/screen.1.php screen -D -m run1.sh and then you can catch up the screen with: screen -r


3

Can you upgrde to SCOM 2007. Interop gets a whole lot easier on that platform. With SCOM you can monitor JMX directly. See Introduction to SCOM 2007 Supported Platforms Cross Platform Extensions features. While there might be other options for MOM available. If I was going to spend a dime on a tool to enhance MOM, the upgrade would be where I spend it. ...


3

Personally I would never use PAE (over 4G of RAM on a 32-bit system). You'll get much better mileage running an actual 64-bit kernel and system. OOM should only trigger when a malloc might fail. (not when you have lots of swap available) The 32-bit kernel is likely to be part of the cause. PAE uses different memory zones and it may be that one zone isn't ...


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

Did you read the Jetty documentation? Glassfish does it by attaching the certificates to the HTTP(S) listeners, which are then in turn bound to a server instance. According to the documentation, the way Jetty does it is pretty similar: http://docs.codehaus.org/display/JETTY/Virtual+hosts You simply configure your vhosts (make them IP based, SSL is ...


3

OK, that was dumb from me. [Solution]: Change the Host Name on the Server Edition (that's the view you get when you double click on your JBoss instance on the Servers view). If you enter "0.0.0.0" as the host name, that will make JBoss listen on all network interfaces. Nevermind...


3

In bin dir you can find such three scripts: jboss_init_hpux.sh jboss_init_redhat.sh jboss_init_solaris.sh These scripts allow you to run JBoss as a service. Unfortunately I have no idea if it works for AIX but maybe you can use one of these scripts as a starting point to create your own. At least you will see how they start JBoss in background.


3

I'd use a connector in the virtual host instead of redirecting.


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

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.


3

Another way to do it like it's described in LikeApache wiki page. server { listen myhost:80; server_name myhost; location / { root /path/to/myapp/public; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ...


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

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

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

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

According to this forum post JBoss AS7 management in OpenShift? in OpenShift site the management port is not accessible without first setting up port forwarding within OpenShift: The JBoss management console has been disabled on the JBoss cartridge embedded in OpenShift. [...] The management console is bound to an internal port (9990). To ...



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