00:53.14 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de) |
01:05.19 | *** join/#tomcat karstensrage (n=karstens@76.21.8.74) |
01:47.23 | *** join/#tomcat roadt (n=roadt@61.191.27.34) |
02:07.38 | *** join/#tomcat ptmahent (n=ptmahent@74.12.29.122) |
04:02.36 | *** join/#tomcat Infinito- (n=kuhn@li6-217.members.linode.com) [NETSPLIT VICTIM] |
04:02.36 | *** join/#tomcat ohsix (i=ohsix@66.220.111.222) |
04:02.37 | *** join/#tomcat dyre (i=dyremahl@trivini.no) [NETSPLIT VICTIM] |
04:02.37 | *** join/#tomcat crYpe (i=bnccrype@noxfire.org) [NETSPLIT VICTIM] |
04:10.40 | *** join/#tomcat Infinito- (n=kuhn@li6-217.members.linode.com) |
04:44.18 | *** join/#tomcat crYpe (i=bnccrype@noxfire.org) [NETSPLIT VICTIM] |
04:44.29 | *** join/#tomcat victori_ (n=victori@75.80.141.237) |
04:44.29 | *** join/#tomcat ohsix (i=ohsix@66.220.111.222) |
04:44.29 | *** join/#tomcat dyre (i=dyremahl@trivini.no) [NETSPLIT VICTIM] |
04:49.33 | *** join/#tomcat dyre (i=dyremahl@trivini.no) |
04:53.36 | *** join/#tomcat acidjnk (i=acid@pD9509E82.dip0.t-ipconnect.de) |
05:05.29 | *** join/#tomcat kvk (n=maddy@61.16.248.242) |
06:00.14 | *** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
06:50.05 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de) |
07:39.40 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de) |
07:49.34 | *** join/#tomcat raddy (n=raddy@59.92.204.234) |
07:49.39 | raddy | Hello Everybody |
07:49.53 | raddy | What is Tomcat-Native? |
07:51.50 | jasonb | It's a waste of time. That's what it is. |
07:51.58 | lyken | lol |
07:52.10 | jasonb | hehe |
07:52.17 | jasonb | I'm into short answers now. :) |
07:52.26 | lyken | i pimped the book so much yesterday |
07:52.27 | lyken | lol |
07:52.42 | jasonb | Really? People were interested in it? |
07:53.00 | raddy | Jasonb : what is it? |
07:53.21 | lyken | yeah 6 people bought it online |
07:53.25 | lyken | hehe |
07:53.36 | jasonb | lyken: Wow. Thanks for telling them about it. |
07:53.42 | lyken | no worries |
07:53.49 | jasonb | lyken: I'm sure they'll like it. |
07:53.56 | lyken | they better |
07:54.11 | jasonb | And, it's still up to date. :) Over a year later. |
07:54.35 | lyken | yups |
07:56.00 | jasonb | heh, it's funny, at work, when I tell some customers that their choice to run Tomcat behind Apache results in losing about half your performance, they say something like "yeah right. How would you know".. I have such a great answer for that one! |
07:56.11 | lyken | lol |
07:56.25 | jasonb | "read it and weep!" |
07:56.38 | lyken | can i believe i forgot that i wrote bits of the os x stuff ? |
07:56.47 | lyken | till i was reading hte acknowledgements last night |
07:57.58 | *** part/#tomcat raddy (n=raddy@59.92.204.234) |
07:58.15 | jasonb | haha |
07:58.46 | jasonb | I sometimes forget I wrote a bunch of what's in there too.. I think my mind is blocking it out, trying to relax again. |
08:00.07 | lyken | lol |
08:09.35 | deebo | jebus, im running an app that requires lots of memory but -Xmx2048m wont even start the damn jvm |
08:09.47 | deebo | Error occurred during initialization of VM |
08:09.47 | deebo | Could not reserve enough space for object heap |
08:10.00 | deebo | is it trying to reserve physical memory or wtf |
08:10.12 | deebo | surely a 32bit jvm on windows can map more than 2GB of mem? |
08:14.17 | lyken | how much ram do you have ? |
08:15.35 | jasonb | Nobody ever needs more than about 640k.. |
08:16.13 | deebo | lyken: 4GB |
08:16.49 | deebo | but apparently a windows app cant map more than 2GB for itself |
08:17.12 | jasonb | windows.. heh |
08:17.35 | deebo | dev enviroment is windows here, sadly |
08:17.47 | deebo | not my choice, believe me :) |
08:22.26 | jasonb | Sure it is. |
08:23.22 | jasonb | Nobody has you chained in a basement in Redmond where you can only run Windows Millenium Edition, you know.. |
08:23.58 | deebo | nope im semi chained at the clients IT consult farm forced to work on a ibm thinkpad with windows xp! |
08:26.38 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de) |
08:29.34 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de) |
08:33.26 | *** join/#tomcat roadt (n=roadt@61.191.27.34) |
08:40.54 | *** join/#tomcat tom17bombadil_ (n=tom@T1ff8.t.pppool.de) |
08:42.24 | *** join/#tomcat icalvin (n=seh@gatekeeper.heise.de) |
08:43.10 | icalvin | Hi everyone! |
08:43.37 | icalvin | has somebody here successfully tried/used the new use_server_errors extension from mod_jk 1.2.27? |
08:57.38 | *** join/#tomcat dvayanu (n=dvayanu@host-62-245-224-138.customer.m-online.net) |
10:42.44 | *** join/#tomcat Alexander (n=Alexande@ip565ef036.direct-adsl.nl) |
11:32.59 | *** join/#tomcat boogaa (n=adf@acl1-1375bts.gw.smartbro.net) |
11:33.18 | boogaa | hi how can i access ejb from a separate tomcat container |
11:34.00 | boogaa | jboss runs on a separate machine it has installed an ejb with jndi name of ejb/ejb3Service |
11:34.06 | boogaa | how can i access it in tomcat |
11:34.21 | boogaa | i tried accessing it in a j2se client app it works |
11:34.27 | boogaa | but in in tomcat it doesnt |
11:35.01 | boogaa | do i have to redeclare the jboss ejb 2.1 jndi name in my tomcat configuration |
11:35.24 | boogaa | something like resource-ref |
11:35.34 | boogaa | have anyone tried doing this |
13:05.40 | *** join/#tomcat theblackbox (n=sam@mail.edirectory.co.uk) |
13:22.49 | *** join/#tomcat e319 (n=e319@user-12lc0jp.cable.mindspring.com) |
13:25.21 | *** join/#tomcat ptmahent (n=ptmahent@net1.senecac.on.ca) |
13:34.02 | MHSL | boogaa, tomcat doesnt support ejb, you need to use something like openejb to deploy ejb on tomcat |
13:40.24 | *** join/#tomcat PiyushK_ (n=PiyushK@202.54.232.135) |
13:40.39 | PiyushK_ | Hi Can i have two appBase in a wepapp |
13:40.44 | PiyushK_ | ?? |
13:41.02 | *** join/#tomcat SteFex (n=opera@195-234-102-200.static.anw.at) |
13:41.08 | SteFex | hi |
13:41.55 | SteFex | what's the apaches httpd.conf in tomcat? |
13:42.13 | PiyushK_ | server.xml |
13:42.17 | MHSL | PiyushK_, appBase is not per webapp, but it's per <Host> |
13:42.30 | PiyushK_ | cab I have 2 |
13:42.34 | PiyushK_ | can* |
13:42.40 | PiyushK_ | per Host |
13:42.43 | SteFex | oh, thanks! Can I use <Directory> there? |
13:42.50 | PiyushK_ | no |
13:42.52 | MHSL | SteFex, read the doc, tomcat is not apache |
13:43.14 | SteFex | I hoped that I can maybe use <Directory> from httpd.conf in Tomcat ;) |
13:43.31 | MHSL | PiyushK_, as far as i know no, read http://tomcat.apache.org/tomcat-6.0-doc/config/host.html |
13:43.47 | PiyushK_ | ok Thanks! |
13:43.49 | *** part/#tomcat PiyushK_ (n=PiyushK@202.54.232.135) |
13:43.55 | MHSL | SteFex, there is something similar to that in tomcat, which is called appBase as mentioned above |
13:44.04 | MHSL | SteFex, read http://tomcat.apache.org/tomcat-6.0-doc/config/host.html |
13:44.17 | SteFex | thanks, MHSL! :) |
13:48.10 | *** join/#tomcat e319 (n=e319@user-12lc0jp.cable.mindspring.com) |
13:50.56 | SteFex | exit |
13:51.16 | *** part/#tomcat SteFex (n=opera@195-234-102-200.static.anw.at) |
13:51.30 | *** join/#tomcat randrew (n=raj@dyn-128-59-53-242.dyn.columbia.edu) |
14:22.59 | *** join/#tomcat ptmahent__ (n=ptmahent@net1.senecac.on.ca) |
14:39.04 | *** join/#tomcat ptmahent (n=ptmahent@kb-v832-130-63-234-498.airyork.yorku.ca) |
15:37.27 | *** join/#tomcat jfclere (n=jfclere@63.85.187.2) |
15:49.15 | *** join/#tomcat ananke (n=ananke@inferno.bioinformatics.vt.edu) |
16:06.28 | ananke | i'm fairly new to tomcat, and i'm having a bit of a hard time figuring out the proper way to deploy an application, and have it act as if it was the root application |
16:07.13 | ananke | should i be placing it in webapps/ROOT, or should i reconfigure tomcat to point to another location? is this a behavior which can be controlled from the app itself? |
16:07.21 | MHSL | yes, use ROOT |
16:07.29 | ananke | thank you |
16:07.35 | MHSL | np |
16:07.58 | MHSL | for your reference http://tomcat.apache.org/tomcat-6.0-doc/config/context.html |
16:08.31 | ananke | yeah, i've been reading that page, but i couldn't figure out what's consider the 'proper' solution |
16:09.16 | ananke | after reading a dozen documents, and spending quite some time with various configs, i figured it's time to ask a human being :) |
16:12.06 | *** join/#tomcat freezey (i=hidden-u@gw.mypublisher.com) |
16:12.58 | freezey | does anybody have experience with mod_jk balancing with tomcat? i am seeing alot of odd errors in my mod_jk logs wondering if anybody can assist |
16:20.27 | freezey | my tomcat version is 5.x and java 1.5 and centos 5.1 |
16:22.58 | MHSL | it would be helpful if you can provide the errors that you're getting |
16:26.28 | ananke | hmm, this is nuts. this application does not work when it's in ROOT, but it works as anything else |
16:26.33 | freezey | http://pastebin.com/mbdf8820 |
16:26.33 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-84ce244592f02aa5) |
16:26.42 | freezey | MHSL: http://pastebin.com/mbdf8820 |
16:27.20 | MHSL | freezey, can you also post your server.xml + workers.properties? |
16:28.03 | MHSL | freezey, and maybe your tomcat log |
16:29.15 | freezey | MHSL: server.xml no i am running the app ofbiz and its some embedded server.xml file and my workers.properties is http://pastebin.com/m6df7c224 |
16:29.45 | freezey | MHSL: with the app you dont actually configure tomcat you would configure ofbiz |
16:30.02 | MHSL | but you still need to configure tomcat, if you're using tomcat |
16:30.08 | MHSL | in one way or another |
16:30.33 | freezey | MHSL: when you configure ofbiz that itself configures tomcat so server.xml is embedded |
16:30.41 | MHSL | freezey, i assume you replaced this right? worker.node3.host=localwebaddresshere |
16:30.42 | freezey | and you cant actually change settings in that |
16:30.44 | freezey | yeah |
16:30.48 | freezey | i replaced that |
16:31.08 | MHSL | so have you set jvmRoute? |
16:31.14 | freezey | yup |
16:31.26 | MHSL | the port is correct? |
16:31.28 | freezey | yeah |
16:31.40 | MHSL | which mod_jk are you using? |
16:31.46 | MHSL | and from where? |
16:32.10 | freezey | mod_jk-1.2.25-https-2.2.4.so |
16:32.28 | MHSL | so from a package? |
16:32.35 | freezey | yeah |
16:32.39 | MHSL | any tomcat log? |
16:32.46 | MHSL | so i'll assume that works |
16:32.50 | freezey | its not a tomcat log actually an ofbiz log |
16:32.52 | freezey | yeah like this works |
16:33.01 | freezey | we can recieve tons and tons of orders |
16:33.02 | MHSL | can you post the log? |
16:33.03 | freezey | but sometimes it craps out |
16:33.11 | freezey | ha logs are huge |
16:33.12 | MHSL | sometimes? when? |
16:33.14 | freezey | ummm |
16:33.23 | freezey | seems to enjoy going down at night =o) |
16:33.31 | MHSL | are you able to reproduce it? |
16:33.34 | freezey | but this app is very noisy |
16:33.35 | freezey | nope |
16:33.41 | freezey | it only does it when it wants |
16:33.56 | *** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca) |
16:33.58 | sub_lime | hello |
16:34.39 | MHSL | freezey, are both apache and tomcat on the same machine? |
16:34.44 | freezey | yea |
16:37.51 | sub_lime | i installed Servlet Engine: Apache Tomcat/6.0.18 on xp home, jdk1.6.0_04. Do I also need to install a separate version of apache. i will require a virtual host |
16:38.24 | deebo | read the docs :p |
16:38.33 | sub_lime | Is it that i run apache on 80 and have a connector to tomcat? sorry for my naive question. |
16:39.04 | MHSL | sub_lime, if you just want to have virtual host, then no, you can use tomcat standalone |
16:39.13 | MHSL | freezey, sorry not sure about it |
16:39.35 | sub_lime | i will read thanks |
16:39.36 | deebo | why do people complicate tomcat by having a plain httpd infront :P |
16:39.44 | deebo | ive never gotten it |
16:40.22 | sub_lime | i agree but this is the way this app is built |
16:40.33 | sub_lime | apache and tomcat with a connector |
16:40.47 | *** join/#tomcat relachs (n=relachs@f051188247.adsl.alicedsl.de) |
16:40.57 | sub_lime | so my apache-tomcat installation does not include apache - it is standalone? |
16:41.00 | sub_lime | thanks! |
16:42.16 | relachs | hi there. |
16:43.22 | freezey | MHSL: i do see in my logs that it comaplins about ajp connections as well |
16:43.29 | freezey | in the ofbiz logs which is tomcat |
16:43.41 | deebo | you can run tomcat on port 80 and it "just works" |
16:43.56 | deebo | but for some reason people put apache httpd infront of tomcat and then come here with their mod_jk logs :P |
16:44.57 | freezey | MHSL: check this out http://pastebin.com/m16bdb3ef |
16:45.51 | MHSL | freezey, any reason why you need to use apache? |
16:46.56 | MHSL | anything before this line? 2008-11-06 03:03:45,502 (TP-Processor2175) [ ChannelSocket.java:690:WARN ] Closing ajp connection 0 |
16:46.58 | freezey | MHSL: yeah we have to have apache ontop |
16:47.06 | freezey | yeah their is tons let me look |
16:47.06 | MHSL | why so? |
16:48.58 | MHSL | you havent given me the reason, this is not a reason "yeah we have to have apache ontop" |
16:49.34 | freezey | MHSL: apache is just more sophisticated with all the modules etc etc apache is just the webserver and our tomcat is just our application server so how the application interfaces it needs apache ontop |
16:49.52 | MHSL | ok |
16:50.11 | MHSL | then that's a reason, should have said that from before |
16:50.16 | freezey | MHSL: and its in production and apache can just handle and distribute the connectiosn way better |
16:50.18 | freezey | sorry man |
16:50.48 | MHSL | hm, if you're trying to compare tomcat standalone and apache + mod_jk + tomcat, tomcat will standalone is certainly faster |
16:52.27 | MHSL | s/tomcat will standalone/tomcat standalone |
16:52.33 | freezey | the way that it handles our clients requests just works tons better |
16:52.54 | freezey | when apache passes it to tomcat and then passes it to ofbiz |
16:53.04 | freezey | and thats how ofbiz really recommends |
16:53.21 | deebo | thats just adding a needless layer of abstraction |
16:53.37 | deebo | 95% of our apps run on plain tomcat on port 80 |
16:53.46 | MHSL | that's one thing, and another thing is, as i mentioned above tomcat standalone is definitely faster than mixing it with apache |
16:53.58 | freezey | in alot of tomcat books they recommend not putting tomcat by itself in production.. cause apache gives tons more flexibility ie rewrite etc |
16:54.22 | MHSL | if you need apache flexibility then that makes sense, but if you just want to hide tomcat, it's not necessary |
16:54.41 | freezey | its mainly for flexibility modules etc etc |
16:54.56 | deebo | if the httpd actually does nothing, why is it there |
16:55.02 | freezey | it does alot |
16:55.14 | freezey | the way ofbiz interacts with httpd it does alot |
16:55.20 | deebo | you can achieve mod rewrite with a * mapped filter |
16:55.24 | freezey | alot of settings alot of modules alot of prefork.c settings etc |
16:55.38 | freezey | yeah well this is mainly how ofbiz recommends in prod |
16:55.50 | freezey | so this is how we have been using it for a few years |
16:55.54 | deebo | well id never do that personally |
16:56.02 | freezey | and everbody has their own perference |
16:56.17 | MHSL | that's fine, as long as you have a good reason for it |
16:56.33 | freezey | the way our client side application interacts with our systems apache is needed |
16:56.46 | freezey | the amount of requests made and how many things it does in the backend |
16:57.04 | freezey | having apache ontop it will distribute the load how ofbiz recommends |
16:57.24 | MHSL | distributethe load... so you need load balancing, there are few load balancers out there |
16:57.35 | freezey | i have it load balanced already |
16:57.50 | MHSL | yep, i'm just mentioning this, since i recommend not to use mod_jk to use load balance anymore |
16:58.11 | freezey | well this is my current setup |
16:58.38 | freezey | load balancer > 3 machines that are each running httpd and ofbiz > db on backend |
16:58.43 | MHSL | i used to use apache + mod_jk + tomcat, in fact some of the servers that i maintaining now are still using this setup, but i'm slowly moving away from this whenever possible |
16:58.47 | freezey | mod_jk is being used to connect to tomcat |
16:59.04 | MHSL | freezey, apache is using mod_jk to have the load balancing capability for tomcat |
16:59.16 | MHSL | freezey, mod_jk is not just a connector |
16:59.32 | MHSL | *not plain connector |
16:59.51 | freezey | thats the only connector i am using for apache tomcat |
16:59.57 | MHSL | i know |
16:59.59 | freezey | apache on each machine is only lookin at that machines tomcat instance |
17:00.06 | MHSL | you can always try other things and compared |
17:00.19 | freezey | well do tell about other ways for it to connect |
17:00.23 | MHSL | so, how do you load balance apache? |
17:00.30 | MHSL | few ways |
17:00.43 | MHSL | you can also use mod_proxy |
17:01.02 | MHSL | i started using haproxy to load balance tomcat + terracotta to do session replication |
17:01.08 | deebo | doesnt tomcat do load balancing in a cluster nahow? |
17:01.11 | deebo | anyhow* |
17:01.20 | freezey | the balancer is a hardware balancer |
17:01.20 | MHSL | deebo, no, clustering is only for session replication not load balancing |
17:01.28 | freezey | isnt mod_jk the better one out of the 2? |
17:01.57 | MHSL | freezey, no, at least not according to jasonb and his benchmark |
17:02.05 | freezey | so which is the better one? |
17:02.19 | MHSL | mod_proxy is certainly easier to configure |
17:02.29 | freezey | more reliable? |
17:02.39 | MHSL | i've never tried it myself, since i've only tried mod_jk and haproxy |
17:02.46 | freezey | hmm |
17:02.51 | freezey | haproxy? |
17:02.59 | MHSL | the only way to find out is to try out yourself :) |
17:03.02 | freezey | very true |
17:03.11 | MHSL | it's a load balancer software |
17:03.12 | freezey | now haproxy will connect apache and tomcat? |
17:03.15 | MHSL | no |
17:03.33 | freezey | ahhh i see |
17:03.46 | MHSL | i do not use apache anymore, if i only want to use apache as a load balancer, i do not need apache, i can use haproxy which is faster |
17:03.53 | freezey | MHSL: ok so the one problem with this is |
17:04.06 | freezey | i did do this setup |
17:04.07 | freezey | BUT |
17:04.21 | MHSL | i'm not too sure about your problem, but you may want to wait a while |
17:04.47 | MHSL | i'm just giving my opinions related to apache + mod_jk + tomcat from what i experienced and discovered |
17:05.37 | MHSL | i think if jasonb is online, he'll also ask you to remove mod_jk (most of the time he'll recommend mod_proxy instead) |
17:06.02 | freezey | we are a publishing company and we have a client where somebody created their book and uploads it to us with this mod_jk haproxy type setup it doesnt work because the client makes tons and tons of calls to the server and uploads files in 64k chunks and with this setup we saw that it was getting bounced around through machines and they were like well how can i put together your product if i dont kno whwere it is and we thought about a backend GFS but |
17:06.49 | freezey | if i was running just strait tomcat i would love to try those |
17:06.56 | freezey | but the application ofbiz and our client |
17:06.57 | MHSL | freezey, your setup is 1 apache = 1 tomcat, so no load balancing needed |
17:07.00 | freezey | its the wya it interacts |
17:07.14 | freezey | well it is load balanced cause we have 3 servers with that same setup taking orders |
17:07.18 | MHSL | i dont believe ofbiz has any relation to apache |
17:07.21 | freezey | so the load balancer distribute the orders |
17:07.26 | MHSL | you're load balancing apache not tomcat |
17:08.00 | freezey | yeah we have it actually lookin at the application tho when in the load balanced setup |
17:08.04 | freezey | through an embedded heartbeat |
17:08.22 | MHSL | as you mentioned before, 1 apache = 1 tomcat, hence no load balancing for tomcat, but you're load balancing apache |
17:08.38 | freezey | thats how the load balancer looks at it yeah |
17:08.51 | freezey | i like the haproxy way |
17:08.53 | freezey | i have set that up before |
17:09.07 | MHSL | so in this case, either you load balance apache which is associated with 1 tomcat or load balancing tomcat directly, there will be no different |
17:09.13 | freezey | the only problem was how are client interacted the sessions got all screwy and chunks of a book were getting thrown all over |
17:09.29 | MHSL | freezey, talking about session, this is the reason why you need session replication |
17:09.39 | freezey | but even with session replication |
17:09.57 | freezey | the data cant be stored on multiple different machines |
17:10.07 | freezey | how is it going to know to piece the chunks together |
17:10.07 | freezey | it wont |
17:10.15 | freezey | and thats when a backend mount came to mind |
17:10.25 | freezey | but its just not ready yte |
17:10.27 | MHSL | freezey, "chunks of a book were getting thrown all over" if you're saying this will happen with load balancing tomcat directly, why would it not happen with load balancing apache? |
17:10.27 | freezey | yet** |
17:10.44 | freezey | well when doing the HAproxy type of setup |
17:10.53 | freezey | 2 apache on top each looks at every tomcat instance |
17:11.00 | MHSL | since the load balancer will still be the one that decides where the requests supposed to go |
17:11.01 | freezey | this way works cause only 1 apache can talk to 1 tomcat |
17:11.16 | MHSL | freezey, stop for a while |
17:11.24 | freezey | i have gone through all of this |
17:11.29 | MHSL | freezey, when using haproxy, you dont use apache anymore, you directly load balance tomcat |
17:11.43 | freezey | oh ok then it was the mod_jk setup i had at onpoint |
17:11.47 | MHSL | no you dont since you didnt know haproxy :) |
17:11.52 | freezey | i had 2 apache talking to 4 tomcats |
17:12.01 | freezey | yeah i just saw the diagram fast and though it interacted the same way |
17:12.03 | freezey | apologies |
17:12.07 | MHSL | ok, so for example 1 apache = 2 tomcats, so 2 apache = 4 tomcats, correct? |
17:12.12 | freezey | yup |
17:12.24 | MHSL | so, now you have another layer that will load balance apache A and B |
17:12.26 | MHSL | correct? |
17:12.31 | freezey | yeah |
17:12.36 | freezey | had to get rid of that tho |
17:13.00 | freezey | cause of the way the our clientside program interacted with the systems |
17:13.03 | MHSL | ok, now go back to your concern "chunks of a book were getting thrown all over" -> this issue will be the same either you load balance apache or tomcat directly, correct? |
17:13.13 | freezey | no |
17:13.18 | freezey | when you do them directly |
17:13.21 | freezey | 1 apace 1 tomcat |
17:13.23 | freezey | its fine |
17:13.34 | freezey | cause the book chunks stay on that machine and cant go anywhere else |
17:13.42 | freezey | so they get grouped correctly |
17:13.57 | MHSL | freezey, hold on, i'm not talking about apache anymore when talking about load balancing tomcat directly, so no apache |
17:14.20 | MHSL | i.e. compare load balancer -> apache -> tomcat with load balancer -> tomcat |
17:14.29 | MHSL | any difference? |
17:14.49 | freezey | ahhh yeahh i never lb'd it directly |
17:15.06 | freezey | never just tomcat tomcat tomcat no apache on top |
17:15.14 | MHSL | so this holds "chunks of a book were getting thrown all over" for both, right? |
17:15.31 | freezey | yeah when using the 2 apache 4 tomcats on back end using the workers.properties etc |
17:15.32 | MHSL | i mean, just by looking at it, there is no difference between the two |
17:16.15 | MHSL | except with load balancer -> apache load balance -> tomcat setup, there is an extra load balancing mechanism happening on apache side |
17:16.28 | freezey | yeah |
17:16.41 | freezey | but this goes back to the reason who use apache ontop is for the functionality it has |
17:16.58 | MHSL | so now, when you said "chunks of a book were getting thrown all over" how did you solve this problem? |
17:17.10 | MHSL | from the load balancer -> apache -> tomcat |
17:18.15 | freezey | yup |
17:18.24 | MHSL | how? |
17:18.31 | MHSL | yup what? |
17:19.04 | freezey | we solved it by having 1 apache talk to 1 tomcat |
17:19.08 | freezey | so we have 3 servers each with that setup |
17:19.21 | freezey | and the load balancer distributes incoming connections |
17:19.36 | MHSL | ok, so you still have load balancer -> apache -> tomcat with 1 apache = 1 tomcat, correct? |
17:19.58 | freezey | and it has layer4 persistence so once a connection comes in and it hits 1 machine it stays their for an hour so each new call that ip makes it will always gto that machine till the upload has finished |
17:20.02 | freezey | yeah |
17:20.52 | MHSL | now, before we go to the one you just mentioned, let's compare the setting above with load balancer -> tomcat |
17:21.07 | MHSL | any difference? the answer is no, since 1 apache = 1 tomcat |
17:21.11 | MHSL | just remove apache off |
17:21.16 | MHSL | agree? |
17:22.16 | freezey | yeah no your tottally right but we use apache for its flexibility |
17:22.25 | freezey | different modules we use |
17:22.30 | MHSL | ok, so we agree on this |
17:22.32 | freezey | the rewrites to close our shopping card |
17:22.38 | freezey | yeah your tottally right their is no difference |
17:22.47 | freezey | its just how we use apache for the flexibility |
17:22.53 | MHSL | so what i mentioned about haproxy is the load balancer part, i.e. haproxy (load balancer) -> tomcat |
17:22.59 | freezey | hmm |
17:23.06 | freezey | i am gonna have to test that then |
17:23.17 | MHSL | but if you've got hardware load balancer, then it's ok :) |
17:23.42 | MHSL | what i'm saying is, if you can remove apache at all from the setup, that should make your life a lot easier :) |
17:24.34 | MHSL | decrease the complexity and remove potential problems from the extra layer, if you can't then it's totally fine |
17:24.45 | MHSL | so another option for you is to use mod_proxy instead of mod_jk, that's all |
17:25.20 | MHSL | so don't worry about haproxy :) |
17:25.40 | MHSL | if you want to do session replication, you can either try tomcat clustering or terracotta |
17:26.00 | MHSL | and just to mention this, session replication has nothing to do with load balancing |
17:27.20 | MHSL | ok, time go to to sleep |
17:27.27 | MHSL | good luck |
17:40.45 | *** join/#tomcat davedoom (n=dwilson@69.28.122.206) |
17:41.51 | *** part/#tomcat davedoom (n=dwilson@69.28.122.206) |
17:46.36 | freezey | thanks |
17:57.28 | *** join/#tomcat mib_3g2wu8 (i=dce02ccf@gateway/web/ajax/mibbit.com/x-af7c159593b9f79d) |
17:57.41 | mib_3g2wu8 | Hello People! |
17:58.19 | mib_3g2wu8 | Can somebody please explain me what exactly is an Application Server ? Is Tomcat qualify as an App Server or it is just an jsp/servelet container ? |
17:58.33 | deebo | tomcat is a servlet container |
17:58.50 | deebo | application server is servlet container + whole lot of other crap :) |
17:59.07 | mib_3g2wu8 | deebo: JBoss is also run as servelet container. Right ? |
17:59.24 | deebo | servlet container is a subset of application server |
17:59.26 | mib_3g2wu8 | deebo: What crap are you talking about exactly? |
18:00.05 | mib_3g2wu8 | deebo: I am confused with BEA Weblogic,IBM WebSphere,JBoss and what not! |
18:01.56 | deebo | well they add their own stuff ontop |
18:02.27 | mib_3g2wu8 | deebo: What sort of stuff ? |
18:02.34 | mib_3g2wu8 | deebo: You mean ESB support ? |
18:02.41 | deebo | well al lsorts of stuff :) |
18:03.03 | mib_3g2wu8 | deebo: Can you please point me to some resource ? |
18:04.10 | deebo | well its simple really |
18:04.20 | deebo | servlet container is the minimum setup if you will |
18:04.27 | deebo | it hosts applications |
18:04.39 | deebo | application servers do that, but offer other stuff ontop |
18:05.15 | deebo | maybe integrations to other layers etc |
18:06.27 | mib_3g2wu8 | Somebody with access to message board should change the URL http://www.webdroid.org/archives/tomcat-package. to http://www.webdroid.org/archives/tomcat-package i.e remove leading "." |
18:06.42 | mib_3g2wu8 | Sorry trailing "." |
18:11.15 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
18:25.12 | *** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca) |
18:26.18 | sub_lime | Apache Tomcat/6.0.18 on xp home, jdk1.6.0_04 Apache 2.2: how do i turn on the Apache auto-configure setting in Tomcat |
18:26.33 | sub_lime | please |
18:26.46 | mib_3g2wu8 | sub_lime: What is auto-configure ? |
18:27.02 | sub_lime | i am following these instaructions: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html |
18:27.11 | sub_lime | but they are for tomcat 5 |
18:28.15 | sub_lime | i found references to turn on the Apache auto-configure setting but these have not worked |
18:28.37 | sub_lime | for example: http://www.sitepoint.com/forums/showthread.php?t=148529 |
18:29.06 | sub_lime | anyway i just want to run tomcat under apache with a virtual host |
18:29.14 | mib_3g2wu8 | sub_lime: "Please note that this example is specific to Tomcat 5.x, unlike other sections of this document which also apply to previous Tomcat branches." |
18:29.22 | sub_lime | yes |
18:29.34 | sub_lime | i canot find docs for 6 |
18:29.37 | sub_lime | looking |
18:30.21 | sub_lime | found some |
18:30.25 | sub_lime | i think |
18:33.30 | randrew | sub_lime: maybe http://tomcat.apache.org/connectors-doc/generic_howto/quick.html attempting to use auto-configure will cause unnecessary stress |
18:34.06 | sub_lime | yes is true. i have unnecessary stress. |
18:34.16 | sub_lime | thanks i will look |
18:36.57 | sub_lime | can i not use mod_jk.so on windows ?? |
18:38.21 | ananke | i'm trying to find documentation on a specific subject, but so far i haven't been successfull. my tomcat complains with the following error: "WARNING: User database is not persistable - no write permissions on directory". where would that be defined? |
18:38.55 | ananke | ahh, i think i found something... |
18:39.53 | ananke | odd, it should have permission to it |
18:45.07 | jasonb | just realizes that Spring is now 80 megabytes in size.. |
18:48.15 | *** part/#tomcat mib_3g2wu8 (i=dce02ccf@gateway/web/ajax/mibbit.com/x-af7c159593b9f79d) |
18:51.58 | jasonb | oh man.. 80M compressed.. 211M unpacked.. |
18:55.59 | deebo | is it now packaged as a single jar? |
18:57.40 | jasonb | There is a spring.jar, and then there are a zillion dependencies.. so I'm seeing a total of 146 jar files that come with Spring! |
18:57.54 | jasonb | That's just.. bad. |
18:58.10 | jasonb | Such a dumping ground for code.. |
19:00.41 | deebo | tho you anly need spring.jar for aop and injection? |
19:00.50 | deebo | all the other stuff is separate, not really dependencies |
19:01.55 | jasonb | So then what's modules/spring-aop.jar for? And lib/aopalliance/aopalliance.jar? |
19:02.21 | deebo | i only have, sec |
19:03.01 | deebo | spring.jar |
19:03.02 | deebo | spring-webmvc.jar |
19:03.05 | deebo | in my web project |
19:03.30 | deebo | 2.9M + 400kB |
19:03.51 | deebo | + other stuff naturally :) |
19:04.09 | jasonb | spring.jar might do aop all by itself. I don't know. 2.9M isn't bad, if you don't need the other 146 jar files! :) |
19:04.23 | deebo | theres one thing tho, something in my project (spring+hibernate+velocity) depends on logging and requires really weird stuff :) |
19:04.26 | jasonb | something tells me they exist for a reason though. :) |
19:04.53 | deebo | id like a servlet container with all this stuff built in |
19:05.13 | deebo | my extremely simple webapp has 19 libs |
19:05.54 | deebo | like for database pojos' annotations i need jta + hibernate-annotations |
19:06.14 | jasonb | Yeah, I know what you mean. |
19:06.34 | deebo | even for the simple logging framework i need api (i guess its just interfaces) and then theres several implementation jars to choose from :) |
19:06.49 | jasonb | They want you to use a Java EE 5 container because then JPA comes with that.. but there are still other huge libs we'd need to bundle. |
19:07.02 | deebo | which again depend on commons collections etc |
19:07.12 | deebo | its kidna hellish |
19:07.51 | deebo | if you start out by doing "new project" in eclipse without using like maven stuff to help with that youll spend 30min easy digging up the jars required for even compiling the thing :P |
19:09.05 | *** join/#tomcat pucko (i=andreas@81-234-246-21-o933.tbon.telia.com) |
19:11.22 | *** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl) |
19:11.41 | jasonb | deebo: Yeah, that sure looks like what it's devolved into. |
19:12.52 | *** join/#tomcat zanberdo (n=mark@adsl-76-254-94-214.dsl.pltn13.sbcglobal.net) |
19:14.30 | zanberdo | I'm looking for direction on how to setup my tomcat 5.0.28 server to redirect the home page to another location? At present if the user points his browser to https://my.tomcat.server/ they find the admin page staring them in the face. I'd like that to redirect to something like https://my.tomcat/server/myapp/ |
19:15.33 | zanberdo | part of the problem I'm having researching this is learning the terminology, so please bare with me and help me to use the correct terms. This way I can be more successful with research and I won't have to ask as often. |
19:15.54 | deebo | you can use vhosts via <context> |
19:16.13 | deebo | the ROOT context is the "default" view, e.g. http://mserver.com/ |
19:24.43 | zanberdo | hmmm... I've searched tomcat and vhosts, but I'm not finding what I think I need. Maybe I'm just not thinking about this correctly. For instance, I currently have an entry in my apache2.conf (for apache2 and not tomcat, of course) that redirects /index.html to some other path such that when the user hits the root of the server they redirect to this other path. I'd thought tomcat might work the same. |
19:24.43 | *** part/#tomcat ananke (n=ananke@inferno.bioinformatics.vt.edu) |
19:25.28 | sub_lime | on tomcat 6 would the Listener className="org.apache.jk.config.ApacheConfig |
19:26.33 | *** join/#tomcat jfclere (n=jfclere@63.85.187.2) |
19:41.26 | zanberdo | all I want to do is redirect calls made to https://my.tomcat.server/ to https://my.tomcat.server/app. I'm having a difficult time finding a resource that covers this particular requirement. |
19:42.09 | zanberdo | I don't want to write a redirector in ROOT thus replacing index.jsp, as this seems like a kludge and adds addition server calls... |
19:42.27 | zanberdo | I'm sure there is a fairly straight forward way to do what I seek, I'm just not finding it. |
19:46.49 | *** join/#tomcat cgp_-_ (n=chatzill@165.215.94.13) |
19:48.45 | *** part/#tomcat zanberdo (n=mark@adsl-76-254-94-214.dsl.pltn13.sbcglobal.net) |
19:54.39 | *** join/#tomcat dyre (i=dyremahl@trivini.no) |
20:19.15 | *** part/#tomcat jfclere (n=jfclere@63.85.187.2) |
20:20.31 | *** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca) |
20:20.33 | sub_lime | hello |
20:21.55 | sub_lime | Apache Tomcat/6.0.18 on xp home, jdk1.6.0_04. |
20:22.20 | sub_lime | since i added apache 2 in front of tomcat 6 i get this error: XML.toString(Document): java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImpl cannot be cast to org.w3c.dom.Element |
20:23.23 | sub_lime | any idea |
20:23.33 | *** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net) |
20:52.49 | sub_lime | !answerbot |
21:48.37 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
22:02.38 | *** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu) |
22:04.58 | *** part/#tomcat randrew (n=raj@dyn-128-59-53-242.dyn.columbia.edu) |
22:07.06 | *** join/#tomcat yobo2 (i=y@ool-18bed8ce.dyn.optonline.net) |
22:19.39 | *** join/#tomcat relachs (n=relachs@f051188247.adsl.alicedsl.de) |
22:39.55 | *** join/#tomcat opr (n=opr@host86-150-90-216.range86-150.btcentralplus.com) |
22:40.10 | opr | sup homeboys? |
22:40.15 | opr | just installed tomcat |
22:41.05 | opr | $CATALINA_HOME what is this likely to be |
22:41.07 | opr | on a windows box |
22:46.31 | lyken | whereever you installed tomcat to |
22:46.55 | lyken | maybe |
22:47.02 | lyken | program files\apache\tomcat ? |
22:51.14 | *** join/#tomcat Orphis (n=quassel@belgarath.moomoocamp.net) |
22:54.10 | *** join/#tomcat x_andro (n=x_andro@88.247.172.243) |
22:57.30 | opr | ta |
23:04.05 | opr | yay works |
23:16.28 | *** join/#tomcat nels_ (n=nels_@nat-vlan0201.sat4.rackspace.com) |
23:29.01 | *** join/#tomcat jfclere (n=jfclere@63.85.187.2) |
23:33.45 | deebo | just as a tip |
23:33.59 | deebo | with java stuff, avoid directories with whitespaces at all costs |
23:35.43 | *** part/#tomcat jfclere (n=jfclere@63.85.187.2) |