Re: [Mongrel] I am a newbie and I would like some help deciding what operating system

2006-07-19 Thread Kirk Haines
nterprise" word, there), has been helpful with a recent security audit. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

[Mongrel] Recommended testing approaches for new Mongrel handlers?

2006-07-19 Thread Kirk Haines
to one or more separate IOWA processes, with session affinity. Is there any set of standard sorts of things that have been devised to test the other handlers that I could apply to my new handlers? Thanks, Kirk Haines ___ Mongrel-users mailing list

Re: [Mongrel] Recommended testing approaches for new Mongrel handlers?

2006-07-19 Thread Kirk Haines
On 7/19/06, Zed Shaw <[EMAIL PROTECTED]> wrote: > On Wed, 2006-07-19 at 12:00 -0600, Kirk Haines wrote: > > Kirk! You're awake! Awesome, since I'm actually writing the "Mongrel > HTTP Compliance Test Suite" using RFuzz right now. If you want I can > get

Re: [Mongrel] suspicious memory usages

2006-07-27 Thread Kirk Haines
application is doing something that is itself very RAM intensive. I don't have enough experience with substantial Rails apps, though, to know whether to lay that at the feet of Rails or not. Kirk Haines ___ Mongrel-users mailing list Mongrel-users

[Mongrel] escape/unescape attribution

2006-07-28 Thread Kirk Haines
(/([^ a-zA-Z0-9_.-]+)/n) do '%' + $1.unpack('H2' * $1.size).join('%').upcase end.tr(' ', '+') end Camping simply stole from cgi.rb, too, so Camping's escape() can't be any faster than CGI's, and the comment in mongrel.rb sh

Re: [Mongrel] Mongrel and multi apps

2006-08-09 Thread Kirk Haines
readed, but Zed has a strongly worded warning against doing that in the code. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Multiple mongrels for one app

2006-08-22 Thread Kirk Haines
ats them one at a time. If Rails could safely multithread, then the guard mutex and it's synchronization (which you can turn off already if you really want to) wouldn't be required, and overall performance on a single Mongrel, for Rails, should be better. Kirk Haines

Re: [Mongrel] MongrelCluster - How can I make a request to a specific mongrel instance?

2006-08-24 Thread Kirk Haines
Every minute or five minutes or whatever ask a master cache shared via drb if it has changed, and if it has, update the local cache from it. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] MongrelCluster - How can I make a request to a specific mongrel instance?

2006-08-24 Thread Kirk Haines
ery so often to sync the local cache to the remote one. If the config object in the drb server has a reload() method or something like that, any of the clients could trigger a config reload by just calling it on the DRb object. Very, very easy to implement. Works well, and is standard in Ru

Re: [Mongrel] Multi apps in one Mongrel instance

2006-08-25 Thread Kirk Haines
4 Linux kernel), I can fork a little over 200 7Mb processes a second in a simple test. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] [ANN] Mongrel 0.3.13.4 Pre-Release -- Ruby's LEAK Fixed (Death To Mutex!)

2006-08-26 Thread Kirk Haines
ve suggests that in 1.8.5 it is taking longer to get around to cleaning up objects. It seems to be faster when it does, as my overall throughput is about 10% faster on 1.8.5, but I don't think I'm liking the tradeoff that I am seeing with memory consumption

Re: [Mongrel] Application performance

2006-09-01 Thread Kirk Haines
an do to cache your database transactions in order to minimize them. If that is the bottleneck, everything else is a meager drop in the bucket. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Recommentation: Sessions and PStore

2006-09-03 Thread Kirk Haines
but I have a process/threadsafe to-disk persistence library that I will bundle and release separately from IOWA. It provides relatively fast persistence and could be used to store sessions like people use PStore. I'll try to finally get that done today if anyone wants to try it out as

Re: [Mongrel] Recommentation: Sessions and PStore

2006-09-03 Thread Kirk Haines
On 9/3/06, Kirk Haines <[EMAIL PROTECTED]> wrote: > I still doubt that Mutex itself is the problem here. Sync uses the > same algorithm for exclusive locking, and I can run _millions_ of > threads through IOWA, which operates similarly to Mutex with regard to which runs simil

Re: [Mongrel] Recommentation: Sessions and PStore

2006-09-03 Thread Kirk Haines
that for some users simply swapping Sync in place of Mutex appears to clear a problem. I'm just arguing with your conclusion that this is because Mutex is broken or because Ruby is leaking memory when it is used. Kirk Haines ___ Mongrel-users mailing

Re: [Mongrel] Recommentation: Sessions and PStore

2006-09-03 Thread Kirk Haines
ing a memory leak in Ruby. It was a stupid error in Hash causing some memory to never be freed. I would not be all surprised if there are other similar errors hiding in Ruby. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

[Mongrel] The real reason why Sync and Mutex behave differently

2006-09-04 Thread Kirk Haines
ect, deterministic behavior on both Linux and Win XP. array.c's behavior is what needs to be examined in greater detail, here. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] balancer://mongrel_cluster

2006-09-04 Thread Kirk Haines
nchronizes Rails calls so that only one runs at a time. Thus, to handle simultaneous Rails requests with Mongrel one needs more than one Mongrel process. Kirk Haines Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] balancer://mongrel_cluster

2006-09-05 Thread Kirk Haines
s is setup to not process concurrent requests, though, to avoid Rails badness. Other Mongrel handlers may be (and probably are, in general) fully capable of operating concurrently. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

[Mongrel] Simple Mongrel performance question

2006-09-05 Thread Kirk Haines
still substantially faster in your benchmarks? Thanks, Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] The real reason why Sync and Mutex behave differently

2006-09-05 Thread Kirk Haines
On 9/5/06, Luis Lavena <[EMAIL PROTECTED]> wrote: > Anyway, the use of thread.critical isn't a viable locking method, as > said by ruby-core by matz a few years back (1.6 version I think). Thread.critical alone makes it easy to get oneself into trouble, but both Sync and Mutex are built on top of

[Mongrel] IOWA & Mongrel, performance

2006-09-06 Thread Kirk Haines
ad at all! Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Recommended testing approaches for new Mongrel handlers?

2006-09-07 Thread Kirk Haines
the state of this? I'd love to expand on my rudimentary tests for the IOWA+Mongrel integration and see if there's anything that I broke that shouldn't be broken. Thanks, Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mass virtual hosting with mongrel

2006-09-07 Thread Kirk Haines
the same mongrel cluster, and you don't have to do anything at all at the Mongrel level, right? You leave it to your app to be multidomain aware? What am I missing? Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http:/

Re: [Mongrel] How to setup a sweeper to restart stale or hung mongrel servers

2006-09-07 Thread Kirk Haines
't answer your question, but a hanging server seems like it falls into the category of things that just should not happen, and that it'd be worthwhile to get to the bottom of why it is happening before working around the fact that it is happening. Kirk Haines ___

Re: [Mongrel] LiteSpeed

2006-09-08 Thread Kirk Haines
On 9/8/06, Zed Shaw <[EMAIL PROTECTED]> wrote: > On Fri, 2006-09-08 at 13:13 -0700, Joe Ruby wrote: > > Yeah, that was the first thought I had about the JRuby > > news -- here come the enterprisey people. :( > > Nah, the JRuby guys are cool, if anything evil happens it'll be due to > something outs

Re: [Mongrel] Recommendation: Faster Can't Help 2

2006-09-09 Thread Kirk Haines
e and the amount of it that is generated via code. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] fckeditor works, but i cant get my buttons back...

2006-09-11 Thread Kirk Haines
not tie it to the .js file suffix. I think this is an oversight and have emailed Austin about it, but if you use mime/types for anythng, be aware of this. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] fckeditor works, but i cant get my buttons back...

2006-09-11 Thread Kirk Haines
this by using some tool to see what HTTP headers are being sent when fckeditor.js is retreived. wget -S http://servername.com/editorpath/fckeditor.js is one way. Make sure that the headers, and especially the content type look right. Kirk Haines __

Re: [Mongrel] Mongrel spewing backtraces and nanosleeping

2006-09-14 Thread Kirk Haines
the stock one runs into with regard to Array. It is otherwise identical to the stock thread.rb. I am curious if you replace your thread.rb with this one, and flip Mongrel back to using Mutex, if you can still get this same failure mode to happen? Kirk Haines thread.rb Description: applic

Re: [Mongrel] Mongrel spewing backtraces and nanosleeping

2006-09-14 Thread Kirk Haines
e_map = {}) @files = Mongrel::DirHandler.new(dir,false) @guard = Sync.new That last line, comment it out and add: @guard = Mutex.new Then try your test again and see if you can reproduce that mode of failure. Kirk Haines ___ Mo

Re: [Mongrel] Mongrel and Sandbox

2006-09-16 Thread Kirk Haines
On 9/16/06, Zed Shaw <[EMAIL PROTECTED]> wrote: > Now if Matz could just be bothered to fix those memory leaks and help > get rid of the 1024 file limit I think I'd be one happy fellow. :-) He asked that the patch for the Hash related leak that I found be committed, so I think that one is taken c

Re: [Mongrel] [ANN] Finally! Mongrel 0.3.13.4 Official (for Unix)

2006-09-18 Thread Kirk Haines
r Mongrel users out of the picture. > What does the dog want to grow up to be? Good question. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] How do you use Mongrel?

2006-09-21 Thread Kirk Haines
few in the distribtution, or just plug in something custom to do what one needs). Performance is comparable to using apache2 with the mod_ruby handler for communication, and is close to fcgi performance, but configuration and testing is much simpler, so it is a definite win for me. Kirk Haines

Re: [Mongrel] Sync and Mutex compatible?

2006-09-22 Thread Kirk Haines
re completely compatible so long as you don't expect a Mutex synchronize block and a Sync synchronize block to have any effect on the other. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] How do you use Mongrel?

2006-09-22 Thread Kirk Haines
real issue. not > bad indeed. Is your application _really_ computation intensive? It boggles my mind that something running 3 web servers (single processor boxes?) with a separate db cluster (2 servers?) and 30 processes to handle it all could be having intermittent speed issue

Re: [Mongrel] Mongrel Processes Dying

2006-09-26 Thread Kirk Haines
s = timeout(@open_timeout) { TCPSocket.open(conn_address(), conn_port()) } Which is curious. I don't know where, in your version of Mongrel, that would be called. I've crawled all through the Mongrel source, and the only places that I see Net::H

Re: [Mongrel] Mongrel woes fixed

2006-10-03 Thread Kirk Haines
Sync, which is ugly enough to make the baby Jesus cry. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

[Mongrel] Sites that use Mongrel

2006-10-04 Thread Kirk Haines
table with Mongrel, Zed. Thanks for your continued work. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Sites that use Mongrel

2006-10-04 Thread Kirk Haines
On 10/4/06, Zed A. Shaw <[EMAIL PROTECTED]> wrote: > What modification did you make to the parser? I think you covered this > once before but can't find the message where you detailed them. They are very modest. I simplified http_field so that it doesn't change dashes to underscores. I separat

Re: [Mongrel] Mongrel is crashing under heavy loads

2006-10-06 Thread Kirk Haines
e can figure this out. What sort of loads are you calling high loads? High levels of concurrency? How high? Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Problems with mongrel dying

2006-11-03 Thread Kirk Haines
er of threads, so in this specific case I continue to use a Mutex, but have patched around the problemlematic Array usage by creating my own copy of the Mutex class that uses Array in a way that doesn't suffer from the bug. Kirk Haines Kirk Haines ___

Re: [Mongrel] OptimizedMutex for Mongrel

2006-11-09 Thread Kirk Haines
also was very tired to check the code in deep. > > I'll contact mentalguy, but I guess the answer will be 'what, windows?' :-P I've been testing it with IOWA, too, and so far, so good. I do think it should be fine on W

Re: [Mongrel] Mongrel as Win32 service for a camping app?

2006-11-29 Thread Kirk Haines
elHandler with Mongrel. It then starts the Mongrel event loop via: @mongrel.run @mongrel_thread = @mongrel.acceptor @mongrel_thread.join It's very similar to the way Nitro works with Mongrel, as well. Kirk Haines ___ Mongrel-us

Re: [Mongrel] shared hosting for an ISP

2006-12-06 Thread Kirk Haines
is my simplest option for deploying new sites and applications. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] The Debian Plan - reloaded

2007-01-15 Thread Kirk Haines
is said will reduce down to something like this: "Provide a patch that retains the ability to selectively require certain versions or version ranges, yet provides the version specification freedom that you think should exist, and we'll consider it." Kirk Haines __

Re: [Mongrel] The Debian Plan - reloaded

2007-01-15 Thread Kirk Haines
a show stopper. After all, is a version like 1.0-rc9 really any more informative than 0.3.13.4? Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Deployement options

2007-02-27 Thread Kirk Haines
their backend. I don't use Rails, though, so your mileage will probably vary quite a lot from that if you do. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel performing only half as fast as Apache?

2007-02-27 Thread Kirk Haines
se to what I have seen in my direct-to-mongrel tests, though I get speeds that are a little bit higher. In the 800+ req/second range. I don't think anything is wrong with your tests. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforg

Re: [Mongrel] Deployement options

2007-02-27 Thread Kirk Haines
Mongrels right now. No, it isn't a must for Mongrel. It may be a must for Rails, but it isn't a must for Mongrel. There is a difference. It's often blurred in both questions and responses, but Mongrel is far more than just a Rails platform. Kirk Haines

Re: [Mongrel] Mongrel performing only half as fast as Apache?

2007-02-27 Thread Kirk Haines
about the same numbers, and they are around 900, give or take 50. I just ran a few hundered thousand requests to pull some solid current timings, and some 10 second bursts were as high as 1000 requests/second or as low as 800/second, but most were c

Re: [Mongrel] Deployement options

2007-02-28 Thread Kirk Haines
tuations where clustering multiple backends is necessary, for sure, but it's possible to handle an exceptional amount of dynamic, db-interactive traffic in a single ruby process. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.or

Re: [Mongrel] Multiple apps on the same server, all should be able to survive slashdotting

2007-03-04 Thread Kirk Haines
7Mb of RAM, perhaps > a "blank" Mongrel is not much more (haven't checked yet). Wonder if this > makes sense, or am I just crazy. This sounds like a way to implement something similar to what I described above. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Memory leaks in my site

2007-03-07 Thread Kirk Haines
; morning :) No. That is probably happening because of the file descriptor limit in Ruby. Your Mongrel has accepted as many connections as Ruby can handle; it is out of descriptors. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Memory leaks in my site

2007-03-07 Thread Kirk Haines
ility to process the requests. Consider the last httperf command that he gave: httperf --server 192.168.1.1 --port 3000 --rate 80 --uri /my_test --num-call 1 --num-conn 1 1 connections is plenty enough to run out of file descriptors if he's only managing to process, say, 70 requests

Re: [Mongrel] Memory leaks in my site

2007-03-07 Thread Kirk Haines
version of Mongrel? Or are you doing anything that creates an array and then shifts values off of it? shift() has a dumb assed (made moreso by the fact that, at least as of 1.8.5 it still exists) bug in it that will mess with your RAM usage badly, especially if you have large thi

Re: [Mongrel] Getting Started without Rails

2007-03-14 Thread Kirk Haines
On 3/14/07, Michel R Vaillancourt <[EMAIL PROTECTED]> wrote: > >Thanks to everyone for your suggestions. I'll go do some more > reading. :) If you want a thin, easy layer on Mongrel for writing an app, take a look at Rack. rack.rubyfor

Re: [Mongrel] mongrel becoming unresponsive

2007-05-07 Thread Kirk Haines
vironment.rb). Just another useless data point, but I never have had a problem with Mongrel on Ruby 1.8.5. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel becoming unresponsive

2007-05-07 Thread Kirk Haines
gt; give you a better explanation. I'd recommend using the logging > features and just keeping an active tail -f on the log. It's a shameless plug, but you might look at http://analogger.swiftcore.org to help with logging. It should be simple to use it from Rails, though nobody has given

Re: [Mongrel] mongrel becoming unresponsive

2007-05-08 Thread Kirk Haines
le backend processes, without worrying about resource contention. It's that, or I have N log files, one for each backend process for my app. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel becoming unresponsive

2007-05-08 Thread Kirk Haines
undle in the next release to make Rails or Mongrel logging integration simpler. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] swifty fly?

2007-05-21 Thread Kirk Haines
transparent to any Mongrel handlers, so the Rails or Camping or Merb or Ramaze or whatever handlers just work. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] swifty fly?

2007-05-22 Thread Kirk Haines
On 5/21/07, Zed A. Shaw <[EMAIL PROTECTED]> wrote: > There's was quite a few announced "mongrel needs some help" kind of > proxies: > > * Swiftiply by Kirk Haines (as he mentioned) > http://swiftiply.swiftcore.org/index.html Really, when I started writing th

Re: [Mongrel] swifty fly?

2007-05-22 Thread Kirk Haines
th Francis Cianfrocca about making sure that an update is done, ASAP, which clears the issue up. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Process safe log files with multiple mongrels

2007-05-22 Thread Kirk Haines
ifferent log files, depending on the hostname and port it is running on, though, if it's mongrel logs that you are asking about. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Process safe log files with multiple mongrels

2007-05-22 Thread Kirk Haines
On 5/22/07, Miles Egan <[EMAIL PROTECTED]> wrote: > On May 22, 2007, at 3:50 PM, Kirk Haines wrote: > > You could try my asynchronous logger, Analogger -- > > http://analogger.swiftcore.org > > I can just see myself explaining that name to my boss now... Pour &

Re: [Mongrel] Bug in Configurator.change_privilege?

2007-07-30 Thread Kirk Haines
get released this weekend as planned because I found a couple bugs that I need to address first). Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] [HELP] Mongrel Needs a Patch Maven

2007-07-31 Thread Kirk Haines
annies in the mongrel source and with it's behavior in the wild ;) I'm also willing to help. I have quite a bit of familiarity with the guts of Mongrel, as well. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://

Re: [Mongrel] multi threaded theoretically useful?

2007-09-07 Thread Kirk Haines
t efficient way of dealing with these sorts of things, from a throughput perspective, is to avoid the overhead of threads completely and just pound them through, one at a time, with 100% of the process resources working on that single request at a time. This doesn't change if you have one proces

Re: [Mongrel] multi threaded theoretically useful?

2007-09-07 Thread Kirk Haines
hen one does a DB query that is going through a C extension, all of the other green threads are blocked, so that latency can't be captured. If it could be, then yes, there would be some benefit from some number of green threads per process for typical web apps. Kirk Haines ___

Re: [Mongrel] multi threaded theoretically useful?

2007-09-07 Thread Kirk Haines
e take a look at using Swiftiply+swiftiplied_mongrel evented_mongrel instead of the threaded mongrel and look again. I think that in many cases a person can run a lot fewer processes than they are, and still get the same, or maybe even better throughput. Once your CPUs are at max utilization, more proces

Re: [Mongrel] multi threaded theoretically useful?

2007-09-07 Thread Kirk Haines
in a multithreaded context, when one thread goes to sleep, the others just get the execution cycles. It's artificial, though. Read Ruby web apps don't tend to have latencies like that. When they are waiting, they are waiting inside of things that block the entire Ruby process, and not ju

Re: [Mongrel] multi threaded theoretically useful?

2007-09-07 Thread Kirk Haines
g multithreaded. It's not very difficult, actually, to do it. Just make a copy of the rails.rb mongrel handler for Rails. Remove the bit that wraps the call to Dispatcher.dispatch() in a @guard.synchronize block. Whether all of Rails is actually threadsafe, an

Re: [Mongrel] multi threaded theoretically useful?

2007-09-08 Thread Kirk Haines
go any way to help > this, assuming the adapter is re-entrant? With Rubinius (or JRuby) it is not the same issue because they are using OS level threads. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] multi threaded theoretically useful?

2007-09-08 Thread Kirk Haines
a rather impressive traffic load on a single process, depending on your framework. And second, running the same code in an event based pipeline versus a multithreaded pipeline invariably gives me better peformance in my apps. Kirk Haines ___ Mongrel

Re: [Mongrel] multi threaded theoretically useful?

2007-09-08 Thread Kirk Haines
e way, so you just need to bring all the resources available to the process to bear on one problem at a time. Kirk haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] multi threaded theoretically useful?

2007-09-10 Thread Kirk Haines
2.6.x platforms), instead of select. I've been saying for two weeks, now, "This week" but...hopefully this week I get to the light at the end of the tunnel. ;) Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.o

Re: [Mongrel] multi threaded theoretically useful?

2007-09-11 Thread Kirk Haines
eries are very slow, then there may be room to use some of those wasted cycles by using a multithreaded deployment. It's something that one would really have to benchmark to know for sure for any given use case. Kirk Haines ___ Mongrel-users mailin

Re: [Mongrel] http keep-alive?

2007-09-14 Thread Kirk Haines
mongrel could have many more than 1024 concurrent connections without any problem. If you read the archives, the subject of keep-alive is somewhat controversial, though we (the current admin/developer crew on mongrel) have discussed it at least once. I think it

Re: [Mongrel] Apache mod_proxy_balancer hang on high traffic hour

2007-09-15 Thread Kirk Haines
40k requests/hour on your single server may or may not be a problem. It all depends on the application. That's only about 11 requests/second, which isn't really a lot. That's about all that can be said without more information and analysis. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel using way more memory on production than staging

2007-10-03 Thread Kirk Haines
thing completely obvious. Tracking down memory leaks in Ruby is a labor intensive process. Good luck. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel using way more memory on production than staging

2007-10-03 Thread Kirk Haines
C++ extension level, you can also use a tool like valgrind to analyze running code and see if you can pinpoint anything that is actualy a problem. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] multi threaded theoretically useful?

2007-10-05 Thread Kirk Haines
d to run all of my IOWA apps via unix sockets. I don't do that anymore, though. There are situations where it can arguably be useful, but most of the time it just doesn't matter. Any differences between 127.0.0.1:1 and /path/to/a/unix/socket are lost in the noise of the rest of the per

Re: [Mongrel] Automatic Scaling

2007-10-22 Thread Kirk Haines
t self adjusts to the load it is receiving, with real time reporting of cluster status. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Working or mongrel

2007-10-26 Thread Kirk Haines
nse and sends it back to the browser. Mongrel doesn't do anything with databases. That is the purview of your application. Check with an appropriate Rails forum to see if anyone knows how to use Seagull with a Rails app. Kirk Haines ___ Mongrel-

Re: [Mongrel] Mongrel 1.1

2007-11-01 Thread Kirk Haines
On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm curious to know why the URL classifier was moved from C code to > Ruby code. I am under the impression that Ruby code is often much > slower than C extensions. I'm also under the impression that the URL > classifier is somewhere that sp

Re: [Mongrel] Mongrel 1.1

2007-11-01 Thread Kirk Haines
implification represented by switching to a pure ruby solution there was a beneficial tradeoff, since most people do not have more than a dozen handlers registered with a mongrel instance, so for most people there will be no performance loss. Kirk Haines _

Re: [Mongrel] Automatic Scaling

2007-11-01 Thread Kirk Haines
en its done thing). It's part of the Swiftiply 0.7.0 feature set. I'm already late on when I wanted to release it, but realistically, it's probably another month or so away. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
collector. Memory usage like that is probably not a Mongrel issue (unless you are generating _very_ large responses in your application). It's likely an issue with your code. What version of Ruby are you using? Are you using any extensions? Kirk Haines ___

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
are certain actions which cause the memory growth. That would help you pinpoint where the likely problems are. Just use ab or httperf to send a large number of requests to specific urls in your app, and see how ram usage changes as you do that. Kirk Haines ___

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
;ll keep > an eye out for this. If this bites you, you can migrate to the most recent 1.8.6, or you can change your code to not use shift. Generally when shift is used, push is being used to stick things on one end of the array while shift pulls them off the front.

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
t try using evented_mongrel out of the Swiftiply package. http://swiftiply.swiftcore.org Just run it in a test environment and see if it helps. For some apps, it makes a big difference in that thread related RAM creep. Kirk Haines P.S. Yes, I WILL have the patch to fix it for Mongrel > 1.

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
was fixed, but not until 1.8.6. I know it is fixed as of at least the last couple of patch releases. I am unsure if it was fixed in the original 1.8.6 release, however. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
try evented_mongrel, you don't need to worry about num_procs. It's irrelevant for the evented_mongrel. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel and memory usage

2007-11-05 Thread Kirk Haines
27;s no big deal, but if you start pushing large files around, it will have an impact on your RAM usage. Pushing huge files via send_file necessarily implies huge RAM usage. Don't do that. x_send_file is one way to avoid doing that. Kirk Haines _

Re: [Mongrel] Mongrel and memory usage

2007-11-06 Thread Kirk Haines
the perspective of the application (or whatever is running inside a mongrel handler). Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel and memory usage

2007-11-06 Thread Kirk Haines
ements in memory carrying around Qnils, but most of the time that's good enough. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

[Mongrel] ANN: Swiftiply 0.6.1.1 (Mongrel > 1.0.1 compatibility)

2007-11-06 Thread Kirk Haines
Just a quick announcement that an update to swiftiplied_mongrel and evented_mongrel which fixes the incompatibility with Mongrels > 1.0.1 has been released. http://swiftiply.swiftcore.org Let me know if you have any problems. Kirk Haines ___ Mong

Re: [Mongrel] mongrel - monit issue

2007-11-07 Thread Kirk Haines
re out there? My old servers are 32 bit machines, but my new ones are all 64 bit machines. Kirk Haines ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel - monit issue

2007-11-07 Thread Kirk Haines
ays passed around when talking about extending the timeout period. Maybe there is some db issue with a _really_ long timeout like 1209600? > Which 64-bit OS are you running? Right now I have Ubuntu and CentOS 64 bit machines. Kirk Haines ___ Mongrel

  1   2   >