Grokbase
Topics Posts Groups | in
x
[ help ]

Posts

Recently Popular | Most Popular | Tags
Andrew Peebles [Catalyst] Trapping exit/respawning FastCgiExternalServer
| +1 vote
Running a "production" Catalyst app as a FastCgiExternalServer. Occasionally it crashes. I'd like...
Catalyst Framework
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Running a "production" Catalyst app as a FastCgiExternalServer.  
Occasionally it crashes.  I'd like to trap that event, use StackTrace 
and send the web admin email (with the trace) to alert them to the
crash.  Ideally I would even like to have the app respawned.  Haven't 
figured out how ...



_______________________________________________
List: [email protected: Cat...@lists.rawmode.org]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
Leonard Sitongia Re: Why so many sessions?
| +1 vote
One week later, and the session count is 476. Is the session count in the Tomcat Manager incorrect?...
tomcat-user@jakarta.apache.org
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On May 28, 2004, at 7:15 AM, Leonard Sitongia wrote:

> On May 27, 2004, at 12:43 PM, Leonard Sitongia wrote:
>
>>
>> On May 27, 2004, at 10:05 AM, Leonard Sitongia wrote:
>>
>>> But, the number of Sessions is 140.
>>>
>>
>> The number appears to have fluctuations up and down, but the overall
>> trend is to increase. There are now 170 sessions. Some sessions
>> apparently expire but others do not, hence the overall increase.
>
> Hello again,
>
> The number of sessions is now over 250.

One week later, and the session count is 476.  Is the session count in 
the Tomcat Manager incorrect?
The memory utilization hasn't significantly increased.  Can I ignore 
the session count?

Thank you for any help you can offer me.
==Leonard


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
Adi Oanca Re: [Xapian-discuss] Precompiled Windows Binaries?
| +1 vote
Hi, I just compiled xapian with MinGW. I could send you the files. Regards, Adi.
Xapian
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

   I just compiled xapian with MinGW.

   I could send you the files.

Regards,
Adi.

_______________________________________________
Xapian-discuss mailing list
[email protected: Xapian-di...@lists.xapian.org]
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Arnaud Gomes-do-Vale [CentOS] Dependency problems
| +1 vote
Hi folks, I use mock quite extensively to build RPM packages for CentOS have a mirror of the whole...
CentOS
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi folks,

I use mock quite extensively to build RPM packages for CentOS
(actually I use the plague build system, which in turn uses mock). I
have a mirror of the whole CentOS tree (on mirrors.ircam.fr, which
syncs directly from msync.centos.org), which my mock configs uses
exclusively.

When populating the mock chroot, I consistently get these errors for
packages in updates (and not in the base tree):

--> Running transaction check
--> Processing Dependency: freetype = 2.2.1-16.el5 for package: freetype-devel
--> Finished Dependency Resolution
Error: Missing Dependency: freetype = 2.2.1-16.el5 is needed by package freetype-devel
Cleaning up...

Of course, both freetype and freetype-devel (in this instance, but I
get the same error with other packages) are on the mirror server, and
both are the same version. The problem goes away if I rebuild the
repository metadata locally:

createrepo /var/ftp/pub/CentOS/5/updates/x86_64
createrepo /var/ftp/pub/CentOS/5/updates/i386

I cannot really say how different my local metadata are from upstream;
diff outputs so much data it is quite useless with this kind of files.

So I guess the metadata are incomplete in some way on the master
server, as I don't usually modify them in any way on my server; can
anyone confirm this or tell me what I am doing wrong?

I can supply the whole mock config files and the command used for
populating the mirror server if needed.

--
Arnaud
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
Matt S Trout Re: [Catalyst] Using Workflow with Catalyst (was Making Controllers thin and Models thick)
| +0 votes
It's an awful horrible piece of shit. Class::Workflow was written by our very own Yuvla Kogman to...
Catalyst Framework
saved to workflow criticism by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, Jul 24, 2007 at 02:43:12PM +0100, Ian Docherty wrote:
> Thanks for pointing out the workflow CPAN module. I am very interested
> in this for my current project and must spend some time looking at it.
>
> Has anyone actually used workflow within a Catalyst application and can
> they give the list their opinion and experiences with it?

It's an awful horrible piece of shit. Class::Workflow was written by
our very own Yuvla Kogman to replace it and works very nicely with Catalyst.

--
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/

_______________________________________________
List: [email protected: Cat...@lists.rawmode.org]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
Adam Herzog [Catalyst] C::P::UploadProgress Patch
| +2 votes
Hi, all. I'm using Catalyst::Plugin::UploadProgress on a project of mine, and it works great. At...
Catalyst Framework
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi, all.

I'm using Catalyst::Plugin::UploadProgress on a project of mine, and  
it works great. At least, until I tried to deploy the application.  
The plugin and accompanying javascript only works correctly if the  
app is deployed at the root (ie, it always checks /progress).

I've attached a patch (svn diff) which allows the plugin to be used  
when an app is deployed at a non-root location, like http://
domain.tld/myapp/.

I would have liked to add some tests for my changes, but, to be  
honest, I don't really know how to test deployment issues like this.  
If somebody has some pointers, I'd be happy to add the appropriate  
tests.

If there aren't any problems with it, can somebody apply the patch  
and push a new release, please?

Thanks,
-A


Index: lib/Catalyst/Plugin/UploadProgress.pm
===================================================================
--- lib/Catalyst/Plugin/UploadProgress.pm       (revision 6455)
+++ lib/Catalyst/Plugin/UploadProgress.pm       (working copy)
@@ -41,8 +41,9 @@
      # if the URI is /progress?progress_id=<id> intercept the request
      # and display the progress JSON.

-    my $query = $c->req->uri->path_query;
-    if ( $query =~ /^\/progress\?progress_id=[a-f0-9]{32}$/ ) {
+    my $base  = $c->request->base;
+    my $query = $c->req->uri;
+    if ( $query =~ /^${base}progress\?progress_id=[a-f0-9]{32}$/ ) {
          return $c->upload_progress_output( $c->req->params-> 
{progress_id} );
      }

@@ -199,6 +200,21 @@
C::E::Apache2::MP20 1.07 with Apache 2.0.58, mod_perl 2.0.2 (OSX)
C::E::FastCGI with Apache 2.0.55, mod_fastcgi 2.4.2 (Ubuntu)
+=head2 NON-ROOT DEPLOYMENT
+
+By default, the javascript uses the URL /progress in order to check  
on the
+status of the upload. If you are deploying your application in a non-
root
+location, like http://domain.com/myapp, you will also need to add an
+additional piece of javascript to your pages. This will let the  
progress
+checking javascript know the correct base path to use in the URL.
+
+If you are using Template Toolkit for your view, you can add the  
following to
+the <head> section of your pages.
+
+    <script type="text/javascript">
+        request_base = '[% Catalyst.request.base %]';
+    </script>
+
=head1 INTERNAL METHODS
You don't need to know about these methods, but they are documented
Index: lib/Catalyst/Plugin/UploadProgress/Static.pm
===================================================================
--- lib/Catalyst/Plugin/UploadProgress/Static.pm        (revision 6455)
+++ lib/Catalyst/Plugin/UploadProgress/Static.pm        (working copy)
@@ -122,6 +122,7 @@
__upload_progress_js__
var progress;
+var request_base = '/';
function startPopupProgressBar(form, options) {
      var id = generateProgressID();
@@ -203,7 +204,7 @@
function reportUploadProgress() {

-    url = '/progress?progress_id=' + progress.id;
+    url = request_base + 'progress?progress_id=' + progress.id;
      var req = new XMLHttpRequest();
      req.open('GET', url, Boolean(handleUploadProgressResults));
Index: Changes
===================================================================
--- Changes     (revision 6455)
+++ Changes     (working copy)
@@ -1,5 +1,7 @@
Revision history for Perl extension Catalyst::Plugin::UploadProgress
+        - Now works under non-root deployment.
+
0.03    2006-10-18 22:15:00
          - Handle race condition where progress handler is
            called before any upload data is received.
Index: example/Upload/root/static/js/progress.js
===================================================================
--- example/Upload/root/static/js/progress.js   (revision 6455)
+++ example/Upload/root/static/js/progress.js   (working copy)
@@ -1,5 +1,6 @@
var progress;
+var request_base = '/';
function startPopupProgressBar(form, options) {
      var id = generateProgressID();
@@ -81,7 +82,7 @@
function reportUploadProgress() {

-    url = '/progress?progress_id=' + progress.id;
+    url = request_base + 'progress?progress_id=' + progress.id;
      var req = new XMLHttpRequest();
      req.open('GET', url, Boolean(handleUploadProgressResults));

_______________________________________________
List: [email protected: Cat...@lists.rawmode.org]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
Paul Baker Re: perlbal performance
| +2 votes
The states output is from only one perlbal instance, so the real numbers are basically double that....
Perlbal
saved to perlbal balancer load performance by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
The states output is from only one perlbal instance, so the real numbers are
basically double that. Here is my basic config:

CREATE SERVICE feeds
  SET role                  = reverse_proxy
  SET pool                  = feedspool
  SET persist_client        = on
  SET persist_backend       = on
  SET verify_backend        = on
  SET connect_ahead         = 50
  SET enable_error_retries  = on
  SET backend_persist_cache = 20
  SET balance_method        = random
ENABLE feeds

I have my backends configured to handle 275 threads each (which if they
actually did serve that many at once would explode) because I haven't really
optimized that number for "the perlbal way". Perlbal has yet to actually
connect that many to a backend by a long shot. Does it make sense for me to
go with a large connect_ahead and/or backend_persist_cache? I'm still a bit
unclear on what specifically each does? Or should I stick with the numbers I
have? Should they be the same number? I figured that setting it high would
just waste more cpu cycles if Perlbal is constantly iterating through a
bunch of bored connections deciding whether to keep them connected or not.








On Oct 30, 2007 12:48 PM, Mark Smith <smitty@gmail.com> wrote:

> So I'm giving Perlbal a taste of some production traffic, and I've
> > basically topped out at 40Mbit/s and 700req/s. [...]
> > Is this the performance level I should expect? Or am I doing something
> > wrong?
> >
>
> You have less clients in persist_wait than I'd expect, but the rest of it
> looks normal. Running two on one box like that is fine IIRC Hyper-Threading
> is fine for this sort of application (two heavy CPU processes, but the same
> ones, so they have shared memory?). Would be interesting to just try it
> with one process and see if you get significantly more requests through.
>
> Anyway, I seem to recall on LiveJournal we were running ~500
> requests/second through similarly configured setups before deciding to get
> more machines so as not to max out the CPUs. Alan or somebody else might be
> able to provide more up to date numbers, but this doesn't sound too wrong.
> :)
>
> If you're concerned about the speed, it'd be worth analyzing the type of
> traffic you're sending at it, as well as the configuration you're running.
> Maximize persistent connections, especially to backend servers, etc. Would
> have to know more about your traffic/config to give more advice here though.
>
>
>
> --
> Mark Smith / xb95
> [email protected: s...@gmail.com]
Mike Friedman [Dbix-class] Several InflateColumn modules to release
| +1 vote
Greetings, I'm putting the finishing touches on a group of InflateColumn modules which I thought...
DBIx::Class
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Greetings,

I'm putting the finishing touches on a group of InflateColumn modules
which I thought might be useful CPAN releases; they're all pretty
trivial, though, so it seems a bit obnoxious to make an entire
distribution for each one. Should I bundle them all together in a
single distribution or upload them separately? Here are the ones I
have which don't overlap with stuff already on CPAN:

InflateColumn::URI  -- turns URI/URL fields into URI objects
InflateColumn::Twig -- turns XML chunks into XML::Twig objects
InflateColumn::GD -- turns a binary field with an image into a GD object
InflateColumn::YAML -- turns a YAML chunk into Perl data structure
InflateColumn::JSON -- same thing but for JSON data


Mike
Lars Nielsen Lind [Dojo-interest] Tutorials editor 2?
| +1 vote
Hi, are there any toturials regarding Editor2 available? thank, Lars
Dojo Tookit
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

are there any toturials regarding Editor2 available?

thank,

Lars
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
[email protected: Dojo-int...@dojotoolkit.org]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Lorenzo [CentOS] Squid +Yum = apt-cacher?
| +1 vote
Hi all, I was wondering if would be possible to configure squid to co ope with yum so it recognize...
CentOS
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,
I was wondering if would be possible to configure squid to co ope with yum so
it recognize mirrors and it can cache rpm packages based on package name and
maybe some other parameter to be sure that is the right package.
Any ideas?

Cheers,
Lorenzo
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
Wei Yu [CentOS] Where to find RHDS (Red Hat Directory Server) ?
| +1 vote
Hi! In the release notes it is said RHDS will replace OpenLDAP. However, I can only find OpenLDAP...
CentOS
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi!

In the release notes it is said RHDS will replace OpenLDAP. However, I can
only find OpenLDAP in  CentOS5. I tried to google the web but it returned
nothing useful. Does anyone know about this? Thanks.

Regards,
Wei Yu

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
Matthew Pitts SIGHUP?
| +1 vote
I've been running through the archives and found some mentions of using the telnet interface for...
Perlbal
saved to load by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
I've been running through the archives and found some mentions of using
the telnet interface for changing Perlbal's config on the fly. But I
really want to know if there is a signal I can send to Perlbal that will
tell it to re-read the config file and rebuild the running config.

We're using Perlbal as a single-public-IP frontend to a bunch of
commodity VMs, none of which have any real traffic, so a slight glitch
in service is acceptable, but I'd rather have a single command like kill
-SIGHUP <perlbal pid> than having to kill it completely and start a new
instance.

TIA for input on this one.

--
Matthew W. Pitts
Software Engineer
[email protected: m...@a3its.com]
336.202.3913 (mobile)

A3 IT Solutions, LLC
www.a3its.com
Niki Kovacs [CentOS] Problems setting up legacy NVidia card
| +1 vote
Hi, Here's my video card: $ lspci | grep -i vga 01:00.0 VGA compatible controller: nVidia...
CentOS
saved to system:unfiled by 1 person
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

Here's my video card:

$ lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2
GTS/Pro] (rev a3)

Until now, I've used it on Slackware (10.0, 10.2, 11.0) and Debian
(Sarge, Etch), and I've always managed to set it up fine.

First, I checked if there were any precompiled nvidia drivers in the
various repos (rpmforge, ...), but there seemed to be only recent drivers.

So I went to the nvidia site and downloaded the corresponding driver for
my card:

NVIDIA-Linux-x86-1.0-7185-pkg1.run

I also updated my kernel, and then 'yum install kernel-devel gcc'.

After doing this, it was time for 'init 3'.

I started the installer:

# sh NVIDIA-Linux-x86-1.0-7185-pkg1.run

I went through the steps like I've done a few times before, and it
didn't complain about anything.

I then opened /etc/X11/xorg.conf, searched for the Driver section and
replaced "nv" by "nvidia".

To be on the safe side, I rebooted. (I've had some strange GDM problems
before when simply doing init 5).

My default screen resolution on my 17'' flat monitor is 1024x768. (The
CentOS installer defaulted to 1280x1024, but I manually edited xorg.conf
to change it). Now, after starting X with the "nvidia" driver, curiously
I had a resolution that looked more like 800x600 (and curiously reminded
me of a default Windows 95 install :o))

I opened a console with Ctrl-Alt-F6, opened /etc/X11/xorg.conf to look
for a mistake... and noticed something strange. xorg.conf looks now
curiously amputated. Here's the whole file, or what's left of it:

--8<-------------------------------------------------
# Xorg configuration created by pyxf86config

Section "ServerLayout"
 Identifier     "Default Layout"
 Screen      0  "Screen0" 0 0
 InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
 Identifier  "Keyboard0"
 Driver      "kbd"
 Option     "XkbModel" "pc105"
 Option     "XkbLayout" "ch"
 Option     "XkbVariant" "fr"
EndSection

Section "Device"
 Identifier  "Videocard0"
 Driver      "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
 Device     "Videocard0"
 DefaultDepth     16
SubSection "Display"
  Viewport   0 0
  Depth     24
  Modes "1024x768"
EndSubSection
EndSection
--8<-------------------------------------------------

This leaves me a bit clueless.

Where has my original xorg.conf (the long version) gone? Is there a way
to get it back somehow? And where does this new - and severely truncated
xorg.conf file come from?

Any suggestions?

Niki
--
Dyslexics have more fnu.
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
Perrin Harkins Re: [Catalyst] Two Strange Catalyst/Apache Issues
|