Tag Info

Hot answers tagged

16

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


5

You can check my blog post on configuring Nginx as reverse proxy for Tomcat. It may be interesting to you, as example includes few additional tweaks as caching content only for not logged in users and redirecting for different languages.


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

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

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


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


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

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


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

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

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

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


2

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


2

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


2

S3_PING still seems to be an experimental feature and that might explain the missing documentation... Anyway, you can configure S3_PING to the jgroups-channelfactory-stacks.xml that is situated in $JBOSS_HOME/server/all/cluster/jgroups-channelfactory.sar/META-INF/. See JGroups Channel Protocol Stack Configuration in JBoss 5.1 Clustering Guide for more info ...


2

Window size at zero means the OS has received all the data it can in its receive buffer for this connection and is waiting for the application to read() it. In other words, if you don't read the data the server is sending you, as fast as it's sending it, at some point it will block like this. How are you using wget, can you paste the exact script/command? ...


2

I am not sure if this could be applied directly to JBOSS unless you want to front end Apache as a web server to JBOSS. Please look at the following feature request to address this issue and it hasnt been adressed yet since the issue is still open. https://issues.jboss.org/browse/AS7-5501.


2

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


2

4.2.3 jboss, you should increase the amount of ajp connections that you can allow in server.xml. if that is not set, the default is 40, which is too low. Up that to 20% higher than your current amount of max connections. If you have hundreds of simutanious connections, set it to 512 and monitor it using the status console.


2

On computer A: ssh -fCNL 8081:localhost:9990 username@192.168.1.11 Or reverse port forward from computer B (don't use both simultaneously): ssh -fCNR 9990:localhost:8081 username@192.168.1.10 For understanding the options see man ssh


2

It sounds to me like you're administrators are trying to provide a fault-tolerant environment so that if a single server goes offline the users will not experience any noticeable change. This may also be for maintenance reasons so that they can work on one of the servers while not affecting the others. In this scenario the application and web server would ...


2

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.


2

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


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

No process is listening on 8080 or 9990, so your service isn't running. What is the command you ran to start the server? Do you have a configuration file? Since you are using an OpenVZ-VPS, there might be an issue with your java. Take a look at this: http://davidanand.blogspot.com/2010/06/jboss-tomcat-on-openvz-centos.html


2

To answer #1 You could try taking a look at Dan Walsh's Fedora SELinux git repository. http://danwalsh.livejournal.com/38032.html Also, this page has some info about running JBoss with SELinux http://community.jboss.org/wiki/startjbossonbootwithlinux Although it might be outdated and I'm not sure if you looked at it yet. The SELinux Wiki is a great ...


2

You need to do only few things: Go to directory docs/examples/jca (in JBoss) and there you can find oracle-ds.xml file, you can use that file as a template for your configuration. Copy oracle-ds.xml to your profile directory (for example default). Edit that file and set up your JDBC connection string. Copy jar library with Oracle thin database drivers to ...


2

I am not really certain about this, but maybe your call to the run.sh script gets killed after your cron script finishes, since you are starting it in the background (&). You could try calling it with nohup to keep it running even when the cron process finishes, e. g. /usr/bin/nohup /home/user/SoftZ/jboss-5.1.0.GA/bin/run.sh -c all & This also ...



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