RE: [JBoss-user] JBoss On Linux
Title: RE: [JBoss-user] JBoss On Linux Generally, you'll see a message when you try to log in indicating the no more descriptors condition. I would think something gets written to /var/log/messages. I would recommend starting at the system level and determine the PIDs associated with the heaviest FDs (or the highest rate of growth), and as Bill indicated, the nature of the FD. lsof is fairly useful, as it indicates the type of FD (IPv4=socket, REG=file, etc). If the heavy hitters are IPv4, you'll probably notice one port with the majority of the sockets - so you can troubleshoot from there. Mike -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED]] Sent: Friday, December 12, 2003 3:50 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss On Linux Is there a way to tell if i've run out of file descriptors? thanks. .peter David Ward wrote: Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371opÌk ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
Is there a way to tell if i've run out of file descriptors? thanks. .peter David Ward wrote: Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371opÌk ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
On Thu, 2003-12-04 at 21:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter This sounds like a problem with sockets. Beyond what John said about hsqldb, use netstat -an to see what sockets are open and what state they are in. But you should also check that the vm is responding at all and hasn't just hung. Use kill -3 jboss-pid to see whether it produces a thread dump. The most likely problem is your access to jndi. Why are you making it use a socket at all? It should be using in memory access. Either you have changed conf/jndi.properties (don't) or you have a jndi.properties deployed somewhere else with a provider url specified. jndi access should not be using a local socket inside jboss. Unrelated, you might also want to reduce the stack size. The typical 8M of stack is very large for java which allocates most stuff on the heap. Use ulimit -a to see your default setting. NOTE: There is a ulimit command in bin/run.sh where you should change this. Regards, Adrian -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
I don't think that they *all* address the wrong thing. Im my Posting about JRockit I was talking about Stability. Refering to the SPECjAppServer benchmark was the best reference I could give since a realy good benchmark doesn't only measure the performance. The benchmark was designed to simulate the stress of 8 hours full server stress within 1 hour. Why do you think jboss crashed with the other VMs within 30mins? Certainly not because it was too slow. If it is too slow the only things you can see are error messages on the driver application injecting the benchmark-data to SPECjAppServer. It was the best test I can think of how well a VM (and of course JBoss ... since this was the thing I was testing) performs. I also mentioned that I could register a slow memory-consuption grow on Sun VMs ... what would be the cause of this if not a memory leak ??? Chris David Ward schrieb: Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss performance whuile using different VMs ... was (Re: [JBoss-user] JBoss On Linux)
Rod Macpherson schrieb: Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) This is your oppinion, a lot of people may have a different one. If you have a look at http://www.spec.org/jAppServer2002/results/jAppServer2002.html you can see that not only Bea Webligic is runing on Jrockit, but also Oracles Applicationserver. After all you should know that simply taking the launching-time of an application isn't a realy good point to measure the speed of a VM. One thing I found out while testing is that if you rely on File-IO (especially for debugging and logging) you can do whatever you want. You will get almost no speedup at all. This was formalized in Amdahls Law (I think). Since the gap between disk performance and computing performance is getting bigger each day I think that File-IO will deffinetliy kill every software tuneup. I just wanted to state that using the BEA Jrockit VM boosted my benchmark for about 35% and let me run the tests for at least 100% longer than the requirement of 30minutes for official results, simply because jboss didn't die because of bad VM housekeeping. Of course the I never measured the startup time. And if I turn on logging I only got about 30% of the performance I had without logging. Chris --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] JBoss On Linux
Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Well, both IBM and JRockit have excellent performance tuning manuals, but according to my experience, both JRockit 8x and IBM 1.4 are unstable on RedHat 7.3, as opposite to Windows and, I presume, to RedHat AS 2.1. That's why I stopped playing with them and switched to Sun. If next year we migrate to SuSE, I'll try again ;-) The drawback of Sun is that for unknown reasons there is no good documentation on GC and memory tuning. Only few articles and forum messages. But we got approx 30% increase after tuning. Cluster of 4 instances, 2 boxes (2 Xeon CPUs, 4GB, RedHat 7.3 each). Vlad --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Thanks for the info. I'll checkout the file descriptors. I didn't realize that could be the problem. I've had problems with them in the past, but its always been with non-java apps and the error messages were pretty clear. No, we don't have a performance problem, but when i do experience this problem the whole appserver is out of commission until it is either resolved or restarted. .peter David Ward wrote: Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371opÌk ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
The VM could be the source of my problem. My unix admin suspects that Sun's VM might not be handling socket connections properly. And in general i am very interested to hear what experiences others are having with alternative VMs. Most of my experience has been with Suns. .peter Christofer Dutz wrote: I don't think that they *all* address the wrong thing. Im my Posting about JRockit I was talking about Stability. Refering to the SPECjAppServer benchmark was the best reference I could give since a realy good benchmark doesn't only measure the performance. The benchmark was designed to simulate the stress of 8 hours full server stress within 1 hour. Why do you think jboss crashed with the other VMs within 30mins? Certainly not because it was too slow. If it is too slow the only things you can see are error messages on the driver application injecting the benchmark-data to SPECjAppServer. It was the best test I can think of how well a VM (and of course JBoss ... since this was the thing I was testing) performs. I also mentioned that I could register a slow memory-consuption grow on Sun VMs ... what would be the cause of this if not a memory leak ??? Chris David Ward schrieb: Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED]
Re: [JBoss-user] JBoss On Linux
Currently we deploy with hypersonic running but don't actually use it. Hopefully that should mean that it's not my problem. However, next week we will start using it as a persistent store for JbossMQ. The config i'm about to use is jdbc2 with pretty default settings. How does one run it "in-line" or "in-process"? I don't see a reference to that in the docs. thanks. .peter Jon Barnett wrote: On Fri, 2003-12-05 at 08:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter Perhaps some other things to check are hsqldb related open files if you are running hsqldb using a JDBC port rather than in-line or in-process. You can lsof to check for anything untoward there. This is a known problem with hsqldb AFAIK. We run with hsqldb as in-process. We also run the IBM 1.4.1 SDK for performance reasons. YMMV but it appears that the IBM and BEA JDK/SDKs have a performance advantage - at least out of the box without any tweaking or special options. Best regards, *---*--* | Jon Barnett | | E-Mail: [EMAIL PROTECTED] | | Homepage: http://www.amitysolutions.com.au Date: 05.12.2003 | | | | And there he saw a marvellous sight | | As to it he made his way:| | Before a fine tomb freshly built | | Praying, a hermit lay. | | The tomb was cased in marble grey| | And inscribed in lettering bright. | | A noble coffin was on it, lit| | By a hundred candles' light. | | l.3526,3533 from the Stanzaic Le Morte Arthur| *---*--*
Re: [JBoss-user] JBoss On Linux
I was very surprised to see that we had a problem getting a connection to the jndi service as well. I had assumed it was in-vm. We haven't modified conf/jndi.properties; we get our context manually. We set java.naming.provider.url to jnp://localhost:1099. I just noticed the following in the conf/jndi.properties file: # Do NOT uncomment this line as it causes in VM calls to go over RMI! #java.naming.provider.url=""> So it looks like setting it to jnp://localhost:1099 could really be adding to the socket load on the box, and thus we could be running out of file descriptors after a week or so, which is roughly how long we can stay running. Does this sound plausible? As far as stack size, our default is 8m. Does anyone have any recommendations on what we should set this too? Or suggestions on determining what is appropriate for our particular situation? thanks. .peter Adrian Brock wrote: On Thu, 2003-12-04 at 21:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter This sounds like a problem with sockets. Beyond what John said about hsqldb, use "netstat -an" to see what sockets are open and what state they are in. But you should also check that the vm is responding at all and hasn't just hung. Use kill -3 jboss-pid to see whether it produces a thread dump. The most likely problem is your access to jndi. Why are you making it use a socket at all? It should be using in memory access. Either you have changed conf/jndi.properties (don't) or you have a jndi.properties deployed somewhere else with a provider url specified. jndi access should not be using a local socket inside jboss. Unrelated, you might also want to reduce the stack size. The typical 8M of stack is very large for java which allocates most stuff on the heap. Use ulimit -a to see your default setting. NOTE: There is a ulimit command in bin/run.sh where you should change this. Regards, Adrian -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
If you specify a remote provider in jndi.properties or pass it in with a Properties object into new InitialContext JBoss will make a socket connection. You must leave the provider empty. Best is to just do new InitialContext() without any parameters. Bill Peter Luttrell wrote: I was very surprised to see that we had a problem getting a connection to the jndi service as well. I had assumed it was in-vm. We haven't modified conf/jndi.properties; we get our context manually. We set java.naming.provider.url to jnp://localhost:1099. I just noticed the following in the conf/jndi.properties file: # Do NOT uncomment this line as it causes in VM calls to go over RMI! #java.naming.provider.url=localhost So it looks like setting it to jnp://localhost:1099 could really be adding to the socket load on the box, and thus we could be running out of file descriptors after a week or so, which is roughly how long we can stay running. Does this sound plausible? As far as stack size, our default is 8m. Does anyone have any recommendations on what we should set this too? Or suggestions on determining what is appropriate for our particular situation? thanks. .peter Adrian Brock wrote: On Thu, 2003-12-04 at 21:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter This sounds like a problem with sockets. Beyond what John said about hsqldb, use netstat -an to see what sockets are open and what state they are in. But you should also check that the vm is responding at all and hasn't just hung. Use kill -3 jboss-pid to see whether it produces a thread dump. The most likely problem is your access to jndi. Why are you making it use a socket at all? It should be using in memory access. Either you have changed conf/jndi.properties (don't) or you have a jndi.properties deployed somewhere else with a provider url specified. jndi access should not be using a local socket inside jboss. Unrelated, you might also want to reduce the stack size. The typical 8M of stack is very large for java which allocates most stuff on the heap. Use ulimit -a to see your default setting. NOTE: There is a ulimit command in bin/run.sh where you should change this. Regards, Adrian -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss On Linux
We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Thanks for the tip. .peter Felipe Oliveira wrote: hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
Peter, do a ps ax as root and you will probably see the following processes running : - cron.daily - updatedb - run-parts and another one i can't remember the name of. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-autotasks-anacron.html should help you to disable the job that is run Werner -- ir. Werner Ramaekers Enterprise Java Solutions Architect - Shift@ JBoss Authorized Service Partner Read my Blog at http://www.werner.be May the source be with you. -- Peter Luttrell wrote: Thanks for the tip. .peter Felipe Oliveira wrote: hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. -- --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] JBoss On Linux
After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] JBoss On Linux
That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371opk ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: AW: [JBoss-user] JBoss On Linux
That's a pretty nice review... Yes, in fact I expected to see a link to the storefront that would net him some micropayments: a nickel per view:) My only concern is that they are now under BEA's umbrella so the temptation to enhance or hobble when running or not running in weblogic is there. -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 5:17 PM To: [EMAIL PROTECTED] Cc: Subject: Re: AW: [JBoss-user] JBoss On Linux That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
RE: AW: [JBoss-user] JBoss On Linux
BTW, did you try the -Xincgc option for continuous GC on Sun's JVM? That would probably give you the same results you were seeing in JRockit. Depending on how you configure each you may not be looking at an apples to apples comparison. -Original Message- From: Rod Macpherson on behalf of Rod Macpherson Sent: Thu 12/4/2003 7:21 PM To: [EMAIL PROTECTED] Cc: Subject: RE: AW: [JBoss-user] JBoss On Linux That's a pretty nice review... Yes, in fact I expected to see a link to the storefront that would net him some micropayments: a nickel per view:) My only concern is that they are now under BEA's umbrella so the temptation to enhance or hobble when running or not running in weblogic is there. -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 5:17 PM To: [EMAIL PROTECTED] Cc: Subject: Re: AW: [JBoss-user] JBoss On Linux That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any
RE: [JBoss-user] JBoss On Linux
Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribi: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=ick ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user winmail.dat
RE: [JBoss-user] JBoss On Linux
It's contagious, ain't it:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 8:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Rod, Input appreciated and respected, however I think to help Peter we need to keep off the performance bunny hole. He never said performance was his problem. As a side note, you're right: what you tested (startup time) was far from a valid performance benchmark. JVMs intended to boost server performance don't try to be fast for startup times (if you want that, use the -client jvm option, not -server). They care more about being fast for things servers care about after they're already up and running - like handling multiple threads quickly, optimizing server hotspots like network connections, and effective memory management of large heaps under load, etc. Besides, I take benchmarks with a grain of salt - each custom app does different things, and thus it's impossible that a generic benchmark is going to tell you what you really need to know - how does tool A stack up against tool B with YOUR application... Oh shoot, now you got me goin' down the bunny hole. Seriously, Peter - my guess is you've either got a resource leak or an inappropriate resource configuration. Start by looking at file descriptors. Just my 2 cents (again), David Rod Macpherson escribi: Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong
Re: [JBoss-user] JBoss On Linux
Rod, Input appreciated and respected, however I think to help Peter we need to keep off the performance bunny hole. He never said performance was his problem. As a side note, you're right: what you tested (startup time) was far from a valid performance benchmark. JVMs intended to boost server performance don't try to be fast for startup times (if you want that, use the -client jvm option, not -server). They care more about being fast for things servers care about after they're already up and running - like handling multiple threads quickly, optimizing server hotspots like network connections, and effective memory management of large heaps under load, etc. Besides, I take benchmarks with a grain of salt - each custom app does different things, and thus it's impossible that a generic benchmark is going to tell you what you really need to know - how does tool A stack up against tool B with YOUR application... Oh shoot, now you got me goin' down the bunny hole. Seriously, Peter - my guess is you've either got a resource leak or an inappropriate resource configuration. Start by looking at file descriptors. Just my 2 cents (again), David Rod Macpherson escribi: Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribi: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused
Re: [JBoss-user] JBoss On Linux
On Fri, 2003-12-05 at 08:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter Perhaps some other things to check are hsqldb related open files if you are running hsqldb using a JDBC port rather than in-line or in-process. You can lsof to check for anything untoward there. This is a known problem with hsqldb AFAIK. We run with hsqldb as in-process. We also run the IBM 1.4.1 SDK for performance reasons. YMMV but it appears that the IBM and BEA JDK/SDKs have a performance advantage - at least out of the box without any tweaking or special options. Best regards, *---*--* | Jon Barnett | | E-Mail: [EMAIL PROTECTED] | | Homepage: http://www.amitysolutions.com.au Date: 05.12.2003 | | | | And there he saw a marvellous sight | | As to it he made his way:| | Before a fine tomb freshly built | | Praying, a hermit lay. | | The tomb was cased in marble grey| | And inscribed in lettering bright. | | A noble coffin was on it, lit| | By a hundred candles' light. | | l.3526,3533 from the Stanzaic Le Morte Arthur| *---*--* signature.asc Description: This is a digitally signed message part
Re: [JBoss-user] jboss on linux (performance)
I think that memory usage is not reported accurately per thread and that actually the total jboss memory usage is 60 MB shared among all threads. david jencks On 2003.03.19 13:03 David Luis Fernandes de Araujo wrote: Hello, i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? Thanks .david --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss on linux (performance)
Hello, i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? Thanks .david --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss on linux (performance)
On Wed, Mar 19, 2003 at 06:03:20PM +, David Luis Fernandes de Araujo wrote: i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? i believe this is all shared memory. each thread reports the block of memory, but it's all the same block. in reality, it's probably only using around 60M total. -- }John Flinchbaugh{__ | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ | ~~Powered by Linux: Reboots are for hardware upgrades only~~ pgp0.pgp Description: PGP signature
Re: [JBoss-user] jboss on linux (performance)
Are you looking at ps output? The memory is actually shared between all of the threads running in the same VM. It should be showing up under the 'shared' column in ps or top output. This deceptive reporting is an artifact of Linux's threading model: a thread is basically a process with copy-on-write of memory turned off. -danch David Luis Fernandes de Araujo wrote: Hello, i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? Thanks .david --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss on linux (performance)
So, do you think is safe to run jboss on linux in a production enviorment ? On Wed, 19 Mar 2003 12:27:17 -0500 John M Flinchbaugh [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2003 at 06:03:20PM +, David Luis Fernandes de Araujo wrote: i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? i believe this is all shared memory. each thread reports the block of memory, but it's all the same block. in reality, it's probably only using around 60M total. -- }John Flinchbaugh{__ | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ | ~~Powered by Linux: Reboots are for hardware upgrades only~~ -- David Araujo [EMAIL PROTECTED] Novis Telecom, S.A.http://www.novis.pt ISP - Trusted Services Estrada da Outurela, 118 - A Tel: +351 21 0104169 2795-606 Carnaxide - Portugal --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss on linux (performance)
Loads of people do it quite successfully, so yes. -dain On Wednesday, March 19, 2003, at 02:54 PM, David Luis Fernandes de Araujo wrote: So, do you think is safe to run jboss on linux in a production enviorment ? On Wed, 19 Mar 2003 12:27:17 -0500 John M Flinchbaugh [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2003 at 06:03:20PM +, David Luis Fernandes de Araujo wrote: i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? i believe this is all shared memory. each thread reports the block of memory, but it's all the same block. in reality, it's probably only using around 60M total. -- }John Flinchbaugh{__ | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ | ~~Powered by Linux: Reboots are for hardware upgrades only~~ -- David Araujo [EMAIL PROTECTED] Novis Telecom, S.A.http://www.novis.pt ISP - Trusted Services Estrada da Outurela, 118 - A Tel: +351 21 0104169 2795-606 Carnaxide - Portugal --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jboss on linux (performance)
Title: RE: [JBoss-user] jboss on linux (performance) Yes, behind a firewall. You can also change the amount of memory that JVM has avaiable with -Xmx and -Xms flags. Run java -X for the non standard options. Jonathan Paul Cowherd Linux and Java Administrator Genscape, Inc. Email: [EMAIL PROTECTED] Office: (502) 583-3730 Mobile: (502) 314-0444 -Original Message- From: David Luis Fernandes de Araujo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 19, 2003 3:55 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] jboss on linux (performance) So, do you think is safe to run jboss on linux in a production enviorment ? On Wed, 19 Mar 2003 12:27:17 -0500 John M Flinchbaugh [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2003 at 06:03:20PM +, David Luis Fernandes de Araujo wrote: i'm running jboss on a linux machine (redhat 7.3) and each one of the threads that jboss throws occupies 60 MB of memory. Is this normal ? What can i do minimize the memory usage ? i believe this is all shared memory. each thread reports the block of memory, but it's all the same block. in reality, it's probably only using around 60M total. -- }John Flinchbaugh{__ | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ | ~~Powered by Linux: Reboots are for hardware upgrades only~~ -- David Araujo [EMAIL PROTECTED] Novis Telecom, S.A. http://www.novis.pt ISP - Trusted Services Estrada da Outurela, 118 - A Tel: +351 21 0104169 2795-606 Carnaxide - Portugal --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi- bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/j boss-user
Re: [JBoss-user] JBoss on Linux Problem (SOLVED)
Thanks, it works now. Server spec: Linux RedHat 8.0 JBoss 3.0.4 J2SDK 1.4 Phu Eric Klimas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent by:cc: [EMAIL PROTECTED]Subject: Re: [JBoss-user] JBoss on Linux Problem eforge.net No Phone Info Available 12/02/2002 09:21 PM Please respond to jboss-user JSP's need to be compiled to a servlet prior to running. My guess is if you java home variable is set to the jre (/usr/java/j2sdk1.4.0/jre or so) there is no java compiler under that path. Install the full SDK (if you haven't) and point your java_home variable to the there so it will find $JAVA_HOME/bin/javac. The web container will then use javac to automatically compile your jsp pages when they are first loaded. There is a way to precompile JSP so you can run your web container on the jre, I unfortunately can't remember how that works now... Hope this helps, -Eric On Fri, 2002-11-29 at 01:42, [EMAIL PROTECTED] wrote: I have some problem when run application on Linux. I was able to start JBoss and deploy the application. But facing the problem when try to call the jsp page, return nothing. But when I change JRE to version 1.3, it able to run without any problem. Server spec: Linux RedHat 8.0 JBoss 3.0.4 JRE 1.4 Does anybody have expience about this kind of problem, how to fix it? Thanks in advance, Phuwarin --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Eric Klimas [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss on Linux Problem
Can you run with 1.4 when you first boot JBoss? I've seen problem when redeploying. Have to restart JBoss every time I deploy. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 29, 2002 1:42 AM Subject: [JBoss-user] JBoss on Linux Problem I have some problem when run application on Linux. I was able to start JBoss and deploy the application. But facing the problem when try to call the jsp page, return nothing. But when I change JRE to version 1.3, it able to run without any problem. Server spec: Linux RedHat 8.0 JBoss 3.0.4 JRE 1.4 Does anybody have expience about this kind of problem, how to fix it? Thanks in advance, Phuwarin --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ** This e-mail and any files transmitted with it are confidential and may be legally privileged or otherwise exempt from disclosure under applicable law. This e-mail and its files are intended solely for the individual or entity to whom they are addressed and their content is the property of Smiths Aerospace. If you are not the intended recipient, please do not read, copy, use or disclose this communication. If you have received this e-mail in error please notify the e-mail administrator at [EMAIL PROTECTED] and then delete this e-mail, its files and any copies. This footnote also confirms that this e-mail message has been scanned for the presence of known computer viruses. *** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss on Linux Problem
JSP's need to be compiled to a servlet prior to running. My guess is if you java home variable is set to the jre (/usr/java/j2sdk1.4.0/jre or so) there is no java compiler under that path. Install the full SDK (if you haven't) and point your java_home variable to the there so it will find $JAVA_HOME/bin/javac. The web container will then use javac to automatically compile your jsp pages when they are first loaded. There is a way to precompile JSP so you can run your web container on the jre, I unfortunately can't remember how that works now... Hope this helps, -Eric On Fri, 2002-11-29 at 01:42, [EMAIL PROTECTED] wrote: I have some problem when run application on Linux. I was able to start JBoss and deploy the application. But facing the problem when try to call the jsp page, return nothing. But when I change JRE to version 1.3, it able to run without any problem. Server spec: Linux RedHat 8.0 JBoss 3.0.4 JRE 1.4 Does anybody have expience about this kind of problem, how to fix it? Thanks in advance, Phuwarin --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Eric Klimas [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss on Linux Problem
I have some problem when run application on Linux. I was able to start JBoss and deploy the application. But facing the problem when try to call the jsp page, return nothing. But when I change JRE to version 1.3, it able to run without any problem. Server spec: Linux RedHat 8.0 JBoss 3.0.4 JRE 1.4 Does anybody have expience about this kind of problem, how to fix it? Thanks in advance, Phuwarin --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Under Linux Crashes..
When auto-deploy tries to load a jar (ejb) it will seg fault. This does not happen if I drop the jar in the deploy directory after JBoss has loaded. What is the difference when doing that? The jar in question does contain: ejb-jar.xml, jboss.xml and jaws.xml If I load JBoss and then drop the jar in the deploy directory everthing works fine. If I have the jar in the deploy directory before starting JBoss I get the following error: ./run.sh: line 27: 14855 Segmentation fault java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@ Hi, Take a look to the Sun's JDK 1.3.1 Installation HowTo on Linux, Known Problems section ( http://java.sun.com/j2se/1.3/install-linux-sdk.html#problems ) , to the second item in the list. Maybe this is your problem. Let me know if this changed something ... Hope this helps, Remus. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Under Linux Crashes..
JBoss users group and Remus, I am using Mandrake 8.0 and the jdk1.3.1 rpm for RedHat. I never read that file and didn't know it existed. I thought it was related to JBoss in some way, but I was wrong. After setting ulimit -s 2048 (as the docs suggest) my problem went away. I thought Mandrake 8 was a RedHat 7.1 image with some added pretty extras. I guess it is a 7.0 image instead. (no clue really, just a guess) Anyway, I am sorry to bother this group with this question as it was not related to JBoss. The problem is solved and I thank you all kindly. Andy Zeneski [EMAIL PROTECTED] Hi, Take a look to the Sun's JDK 1.3.1 Installation HowTo on Linux, Known Problems section ( http://java.sun.com/j2se/1.3/install-linux-sdk.html#problems ) , to the second item in the list. Maybe this is your problem. Let me know if this changed something ... Hope this helps, Remus. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Under Linux Crashes..
Interesting... I use RedHat 7.1 (2.4.2-2 kernel) with Sun JDK 1.3.1-b24/HotSpot Server VM, with JBoss-2.2.2_Tomcat3.2.2 AND JBoss2.4.0_Tomcat3.2.3 with no problems. BTW, I also upgraded my libsafe.so version from 1.3 to 2.0. I have never seen the problem you're experiencing, even before I upgraded my libsafe. Just a data point from a fellow Linuxer... David -- Andy Zeneski wrote: When auto-deploy tries to load a jar (ejb) it will seg fault. This does not happen if I drop the jar in the deploy directory after JBoss has loaded. What is the difference when doing that? JBoss Version: 2.2.2 Tomcat Version: 3.2.2 OS : Linux JVM: Sun 1.3.1-b24 The jar in question does contain: ejb-jar.xml, jboss.xml and jaws.xml If I load JBoss and then drop the jar in the deploy directory everthing works fine. If I have the jar in the deploy directory before starting JBoss I get the following error: [Auto deploy] Starting [Auto deploy] Watching /home/xxx/appsvr/jboss/deploy [Auto deploy] Auto deploy of file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Module test-ejb.jar is not running [J2EE Deployer Default] Destroying application test-ejb.jar [J2EE Deployer Default] Deploy J2EE application: file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Create application test-ejb.jar [J2EE Deployer Default] install module test-ejb.jar [Container factory] Deploying:file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar [Verifier] Verifying file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar/ejb1001.jar ./run.sh: line 27: 14855 Segmentation fault java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@ [xxx@x bin]$ [xxx@x bin]$ java -version java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) [xxx@x bin]$ [xxx@x bin]$ uname -a Linux SOMEHOST 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i586 unknown I included Java and Linux kernel versions. Please help I am so out of ideas. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss Under Linux Crashes..
Hummm /home/xxx/appsvr ??? what kinda data you serving ? ;-) I have not had any problems with Jboss under linux - I just refreshed my machine at home with a new 7.1 install - so I`ll try the combination you describe tonight and post findings tomorrow. Graeme -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Ward Sent: Monday, August 06, 2001 2:20 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss Under Linux Crashes.. Interesting... I use RedHat 7.1 (2.4.2-2 kernel) with Sun JDK 1.3.1-b24/HotSpot Server VM, with JBoss-2.2.2_Tomcat3.2.2 AND JBoss2.4.0_Tomcat3.2.3 with no problems. BTW, I also upgraded my libsafe.so version from 1.3 to 2.0. I have never seen the problem you're experiencing, even before I upgraded my libsafe. Just a data point from a fellow Linuxer... David -- Andy Zeneski wrote: When auto-deploy tries to load a jar (ejb) it will seg fault. This does not happen if I drop the jar in the deploy directory after JBoss has loaded. What is the difference when doing that? JBoss Version: 2.2.2 Tomcat Version: 3.2.2 OS : Linux JVM: Sun 1.3.1-b24 The jar in question does contain: ejb-jar.xml, jboss.xml and jaws.xml If I load JBoss and then drop the jar in the deploy directory everthing works fine. If I have the jar in the deploy directory before starting JBoss I get the following error: [Auto deploy] Starting [Auto deploy] Watching /home/xxx/appsvr/jboss/deploy [Auto deploy] Auto deploy of file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Module test-ejb.jar is not running [J2EE Deployer Default] Destroying application test-ejb.jar [J2EE Deployer Default] Deploy J2EE application: file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Create application test-ejb.jar [J2EE Deployer Default] install module test-ejb.jar [Container factory] Deploying:file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar [Verifier] Verifying file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar/ejb1001.jar ./run.sh: line 27: 14855 Segmentation fault java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@ [xxx@x bin]$ [xxx@x bin]$ java -version java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) [xxx@x bin]$ [xxx@x bin]$ uname -a Linux SOMEHOST 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i586 unknown I included Java and Linux kernel versions. Please help I am so out of ideas. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Under Linux Crashes..
I had a series of seg faults under Slackware, albeit not with Jboss (but in vaguely comprable circumstances) - at sun's suggestion I tried compiling my stuff with something else (I had been using classes compiled straight out of JBuilder), so I changed to Jikes, and haven't had a seg fault since. Just a thought... Owen When auto-deploy tries to load a jar (ejb) it will seg fault. This does not happen if I drop the jar in the deploy directory after JBoss has loaded. What is the difference when doing that? JBoss Version: 2.2.2 Tomcat Version: 3.2.2 OS : Linux JVM: Sun 1.3.1-b24 The jar in question does contain: ejb-jar.xml, jboss.xml and jaws.xml If I load JBoss and then drop the jar in the deploy directory everthing works fine. If I have the jar in the deploy directory before starting JBoss I get the following error: [Auto deploy] Starting [Auto deploy] Watching /home/xxx/appsvr/jboss/deploy [Auto deploy] Auto deploy of file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Module test-ejb.jar is not running [J2EE Deployer Default] Destroying application test-ejb.jar [J2EE Deployer Default] Deploy J2EE application: file:/home/xxx/appsvr/jboss/deploy/test-ejb.jar [J2EE Deployer Default] Create application test-ejb.jar [J2EE Deployer Default] install module test-ejb.jar [Container factory] Deploying:file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar [Verifier] Verifying file:/home/xxx/appsvr/jboss/tmp/deploy/Default/test-ejb.jar/ejb1001.jar ./run.sh: line 27: 14855 Segmentation fault java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@ [xxx@x bin]$ [xxx@x bin]$ java -version java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) [xxx@x bin]$ [xxx@x bin]$ uname -a Linux SOMEHOST 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i586 unknown I included Java and Linux kernel versions. Please help I am so out of ideas. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.2.2 - Linux kernel 2.4
All, My JBoss start problem was solved by Dim and Philip Meier: Where are you running run.sh from? Notice that $JBOSS_HOME/bin/run.sh wont work, you'll need to cd $JBOSS_HOME/bin; ./run.sh --- This is a design flaw in run.sh which can easily fixed by adding cd `dirname $0` at the top if the script. Thanks to all... Axel Muench ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2.2 - Linux kernel 2.4
Have you tried usingsh run.sh? Axel Muench wrote: Hi, I'm new to JBoss and try to start JBoss by executing run.sh JBoss 2.2.2 or 2.4.0BETA Linux kernel 2.4 - Suse 7.1 This is the error message: JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar Exception in thread main java.lang.NoclassDefFoundError: org/jboss/Main Any major thing I'm missing here? Thanks, Axel Muench. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.2.2 - Linux kernel 2.4
Hi, I'm new to JBoss and try to start JBoss by executing run.sh JBoss 2.2.2 or 2.4.0BETA Linux kernel 2.4 - Suse 7.1 This is the error message: JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar Exception in thread main java.lang.NoclassDefFoundError: org/jboss/Main Any major thing I'm missing here? Thanks, Axel Muench. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2.2 - Linux kernel 2.4
What version of JDK are you using. As far as I know JBoss will only run with Version 1.3 Devraj At 18:02 2/07/01 -0700, you wrote: Hi, I'm new to JBoss and try to start JBoss by executing run.sh JBoss 2.2.2 or 2.4.0BETA Linux kernel 2.4 - Suse 7.1 This is the error message: JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar Exception in thread main java.lang.NoclassDefFoundError: org/jboss/Main Any major thing I'm missing here? Thanks, Axel Muench. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss on Linux
Try giving the JBoss-Jetty bundle a whirl. This lacks some of the more front-line fnality (JAAS integration), but I believe that Jetty handles load better. You won't know if don't try! Jules --- Jim Archer [EMAIL PROTECTED] wrote: Hi Hunter... We have jBoss 2.2.1 running on Debian/Linux and we have developed scripts to load test it. We only talk to Tomcat and the servlets talk to enterprise beans. I really idn't understand that part of the manual at all. I'm not sur what they meant by users and I don't understadn the discrepency about such a huge performance difference. The manual did say that if Tomcat or Jetty are used in fromt of jBoss there should not be a problem, and we are using Tomcat. We have no clients that talk directly to enterprise beans. All I can say is that the jBpss/Tomcat bundls holds up under load. Jim --On Monday, May 28, 2001 11:50 AM -0700 Hunter Hillegas [EMAIL PROTECTED] wrote: The manual states that a Linux box running JBoss dies after about 200 users and implies this is because of the threading model on Linux. Is this really true? Anyone deployed a Linux configuration with more than 200 simultaneous users? Hunter ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss on Linux
The manual states that a Linux box running JBoss dies after about 200 users and implies this is because of the threading model on Linux. Is this really true? Anyone deployed a Linux configuration with more than 200 simultaneous users? Hunter ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss on Linux
Hi Hunter... We have jBoss 2.2.1 running on Debian/Linux and we have developed scripts to load test it. We only talk to Tomcat and the servlets talk to enterprise beans. I really idn't understand that part of the manual at all. I'm not sur what they meant by users and I don't understadn the discrepency about such a huge performance difference. The manual did say that if Tomcat or Jetty are used in fromt of jBoss there should not be a problem, and we are using Tomcat. We have no clients that talk directly to enterprise beans. All I can say is that the jBpss/Tomcat bundls holds up under load. Jim --On Monday, May 28, 2001 11:50 AM -0700 Hunter Hillegas [EMAIL PROTECTED] wrote: The manual states that a Linux box running JBoss dies after about 200 users and implies this is because of the threading model on Linux. Is this really true? Anyone deployed a Linux configuration with more than 200 simultaneous users? Hunter ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user