th this issue?
Thanks and best regards,
Tobias
nt system I can't regocnize
anything that took longer or so, but before transfering this code
to the productiv system I will be sure, that nothing can happen.
Or, perhaps, someone can tell me another way to get the request
an apache process is currently handling.
Thanks for your help!
Rega
mal" Requests
and first after finishing the complete request I can decide if the
"Content-Type" is html/pdf/json/xml/etc.
Can someone give me a hint or better a solution how I can abort the
request on the server side, too.
Please excuse my english, but I hope you understand my question ;-)
Best regards,
Tobias
ing and $Apache::ServerReStarting?
This gives me:
Apache::ServerStarting = 1
Apache::ServerReStarting = 0
once(!) on server startup - no matter if I "use" my handler or load it via
PerlModule.
--Tobias
Quoting Tobias Kremer <[EMAIL PROTECTED]>:
> Quoting Perrin Harkins <[EMAIL PROTECTED]>:
> > How are you loading this? With a PerlModule call? Can you try
> > loading it from a Perl section like this?
> >
> > use MyModule;
> >
> Wow, it seem
ck out how our real system
behaves with this change.
Thanks a lot, Perrin!
--Tobias
t (overloaded)
On first request:
20099 Apache::DBI need ping: yes
20099 Apache::DBI already connected to 'foo:bar...'
20099 Apache::DBI PerlCleanupHandler
--Tobias
nd it's
correctly telling me that it's "skipping connection during server startup".
--Tobias
p and the subsequent connections
in the handler() method also works. So everything looks like the connection made
during startup is indeed re-used somehow, although Apache::DBI correctly reports
that it won't cache it. Maybe now's the time to file a bug report ...
--Tobias
dent not-cached
handle which should have got nothing to do with my global $dbh that
the errors crop up.
Thank you very much! :)
--Tobias
Quoting Michael Peters <[EMAIL PROTECTED]>:
> Tobias Kremer wrote:
> > use vars qw( $dbh $thefoo );
> Why are you storing the DB handle in a global variable?
> If you do that then Apache::DBI can't help you if the connection goes away.
To make this variable availab
ple of requests. Removing the lines:
my $foo = LostFoo->new();
$thefoo = $foo;
makes the error disappear completely.
I've had this problem on many systems and never really bothered because it only
shows up on our rather busy system after the server gets restarted but somehow
it gives me headaches to not know where it is coming from ...
--Tobias
Quoting Perrin Harkins <[EMAIL PROTECTED]>:
> On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote:
> > We never fork and I thought that Apache::DBI takes care of checking if a
> > connection went stale by utilizing DBI's/DBD::mysql's ping()
Quoting Perrin Harkins <[EMAIL PROTECTED]>:
> On Fri, Jun 27, 2008 at 5:51 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote:
> > Now if I could just get rid of those annoying random "Commands out of sync"
> and
> > "Lost connection to MySQL server during
Quoting Tobias Kremer <[EMAIL PROTECTED]>:
> On 25.06.2008, at 20:58, Amiri Barksdale wrote:
> > I had big trouble with DBD::mysql 4.007. I didn't get rid of my
> > segfault problem running mod_perl 1.31 until I went back to 4.004.
>
> Thanx. It really looks
ting to an earlier version of DBD::mysql.
--Tobias
he 1.x and mod_perl 1.x are old versions, and you will have trouble
> finding someone able to help you.
Unfortunately, switching to Apache2/mod_perl2 is not an option at this time :(
Besides, I doubt that everyone here already erased their entire mod_perl 1
knowledge. Where are my old-hands? ;-)
--Tobias
Quoting Tobias Kremer <[EMAIL PROTECTED]>:
> > - Ubuntu Feisty with apache-perl.
> > - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads)
> > - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and
> Apache::DBI
>
> I should have mentioned t
tu apache-perl package consists of Apache 1.3.34 and
mod_perl/1.29.
--Tobias
t.
#0 0xb775a89b in mysql_ping () from /usr/lib/libmysqlclient.so.15
So it fails during the call to mysql_ping() but I can't see why this is
happening.
Any ideas?
Thanks!
--Tobias
Hi,
> SetHandler perl-script
I think it's only a missing file type
SetHandler perl-script .pl
Hth,
Tobias
1);
}
print "Content-type: text/html\n\n";
print "Test";
print("version 2.x suceeded!!!");
print "";
1;
I think apache2/mp2 automatically sends a header
and apache 1.3 doesn't. It's only a guess cause
I don't have any experiences with apache2.
Tobias
Hi Tyler,
I don't think that your script causes the issue.
Is there a timeout value set in the httpd.conf?
Hth,
Tobias
Hi all,
I have a weird problem: on startup apache executes 4 times a Perl Script
I included via
PerlPostConfigRequire startup.pl
in the httpd.conf. The startup script contains following code:
#!/usr/bin/perl
my $file = 'c:\tmp\test.txt';
open(INFO ,">>$file") || die "Error $!";
print INFO
o('MySOAPService')
-> handle;
BEGIN {
package MySOAPService;
use strict;
use vars qw(@ISA);
@ISA = qw(SOAP::Server::Parameters);
sub ListHandler {
my $self = shift;
my $envelope = pop;
my $i = 0;
for my $item ($envelope->valueof("//ListHandler/List/ListItem")) {
$ListItemName = $item->{Name};
$ListItemValue = $item->{Value};
# ...
$i++;
}
return SOAP::Data->name("ItemCount" => $i);
}
}
That's all.
Regards
Tobias
HASH(...))
I only retrieve an empty hash.
Correct me if I'm wrong, but I understand the above list as follows:
The hash with name attrList contains the key listItem with an anonymous
array as value. The array itself contains two hashes each with the two
keys attrVal and attrName.
How can I access these values?
Thanks a lot.
Tobias
s in the wrong way?
I would appreciate if someone could point me in the right direction.
Thanks,
Tobias
urbia.com AG is looking for an experienced Perl/mod_perl Web developer
(full-time) to support the development of our successful online
community at www.urbia.de.
More information (in German only) about the job can be found at:
http://www.urbia.de/general/jobs/
--
Kind regards
Tobias Kremer
I suggest taking a look at the excellent mod_perl performance guide:
http://perl.apache.org/docs/1.0/guide/performance.html
-- Tobias
Zitat von "Daniel B. Hemmerich" <[EMAIL PROTECTED]>:
> We are concerned about how much memory we are using now that we are moving
> t
Hi Andreas,
if you're using the Debian supplied packages for apache2, perl and
mod_perl I'd try compiling them manually and see if that helps. This
will also give you a Perl interpreter without threads (which have
a negative impact on performance AFAIK).
HTH,
Tobias :)
Zitat v
Zitat von Perrin Harkins <[EMAIL PROTECTED]>:
> > Create a new instance of the mod_perl handler module during startup and
> > refer to that for the handlers (code below).
> > This module would then cache DB connections and provide a method for
> > 'create or fetch current DB connection'.
>
> DBI->
Zitat von Perrin Harkins <[EMAIL PROTECTED]>:
> You need to separate managing your database connections from caching
> this data. They are not related, and there's no reason to do both in
> one class. Either just call connect_cached all the time (it uses
> Apache::DBI when it finds it loaded), o
Hey guys,
I'm wondering what's the best way to design a database-backed module
which works completely on its own as well as within mod_perl (mp1).
The module should make a database connection during object initialization
(new). This connection should then be used by all methods which want to
acces
Zitat von Eric GRAMMATICO <[EMAIL PROTECTED]>:
> When I connect to http://localhost/perl/rocks.pl the browser shows the
> source code. I believe I have a miss configuration somewhere, but I
> didnt find. Here is the alias part of my /etc/httpd/conf.d/perl.conf:
>
> Alias /perl/ /var/www/perl/
>
v5.8.0
OpenSSL v0.9.6g
Crypt-OpenSSL-X509-0.3.1
Sorry for the not modperl-related post, but I hope here's
someone who can help me.
Thanks,
Tobias
--
Tobias Regneri
mailto:[EMAIL PROTECTED]
Ken Perl wrote:
> their links http://modperlbook.org/ ... are both broken
modperlbook.org works fine for me, try it again ...
TR
Zitat von Daniel McBrearty <[EMAIL PROTECTED]>:
> I've been looking around at MVC frameworks a bit recently. RoR looks
> good if you don't mind the language switch, but I'm also looking at
> these two. Anyone have much experience of them, in tandem with
> mod_perl? Feedback and thoughts?
Catalyst
Zitat von Perrin Harkins <[EMAIL PROTECTED]>:
> On Thu, 2005-12-22 at 16:00 +0100, Tobias wrote:
> > As soon as more than one parallel request is made I immediately get
> > unexplainable DBI errors like "fetch() without execute()", "DBD driver
> > has no
Hi list,
I recently transferred our application to a more powerful server running
debian 3.1. As always I compiled the important parts (perl 5.8.7 without
threads and apache 1.3.34/mod_perl plus a lot of cpan modules) myself. Our
application (which uses Mason) ran fine for the last 3 years on all
hi list,
i'd like to know if it is okay to use debian sarge's apache-perl
package for a production environment or if i'd be better of
rebuilding everything including perl (as debian's perl comes with
ithreads support)?
I've read that a perl interpreter with ithreads enabled is about
10-15% slower
statically and
dynamically with built-in mysql-support and linked to my
installed mysql libraries - nothing helped).
I finally gave up on this and am now running two separate
apache servers (one for php, one for mod_perl) on my machine
which kinda sucks :(
--
Cheers,
Tobias
Zitat von Glob
41 matches
Mail list logo