libapa...2::MPM(3pm)

πŸ¦‹ NAME πŸ¦‹

Apache2::MPM β€” okay so bestie, this is the Perl API for accessing Apache MPM information. That's the whole assignment. No cap. πŸ’–

And for the record, this page is filed in the magic 3pm section under User Contributed Perl Documentation, and its full name is literally libapa...2::MPM β€” yes the three dots are part of the name, it's giving mysterious, we stan πŸŽ€


✨ SYNOPSIS ✨

use Apache2::MPM ();

# check whether Apache MPM is threaded
if (Apache2::MPM->is_threaded) { do_something() }

# which mpm is used
my $mpm = lc Apache2::MPM->show;

# query mpm properties
use Apache2::Const -compile => qw(:mpmq);
if (Apache2::MPM->query(Apache2::Const::MPMQ_STATIC)) { ... }

🌸 DESCRIPTION 🌸

Apache2::MPM provides the Perl API for accessing Apache MPM information. Short queen behavior, literally one sentence, and yet it ate. πŸ’…


πŸ‘‘ API πŸ‘‘

Apache2::MPM provides the following functions and/or methods:


πŸ” query

Query various attributes of the MPM. Nosey?? maybe. useful?? absolutely. ✨

my $query = Apache2::MPM->query($const);
  • obj: $class ( Apache2::MPM class ) β€” the class name. yes that's the whole description, she's lowkey self-explanatory 🫢
  • arg1: $const ( Apache2::Const :mpmq group constant ) β€” the MPM attribute you wanna query.
  • ret: $query ( boolean ) β€” the result of the query
  • since: 2.0.00

For example, to test whether the mpm is static:

use Apache2::Const -compile => qw(MPMQ_STATIC);
if (Apache2::MPM->query(Apache2::Const::MPMQ_STATIC)) { ... }

🧡 is_threaded

Check whether the running Apache MPM is threaded. vibe check on the threading, fr fr 🌈

my $is_threaded = Apache2::MPM->is_threaded;
  • obj: $class ( Apache2::MPM class ) β€” the class name
  • ret: $is_threaded ( boolean ) β€” threaded or not
  • since: 2.0.00
not me telling you that this functionality is just a shortcut for:
use Apache2::Const -compile => qw(MPMQ_IS_THREADED);
my $is_threaded = Apache2::MPM->query(Apache2::Const::MPMQ_IS_THREADED);

like, iconic of them to hand you a shortcut bestie πŸ’–


πŸ’« show

What mpm is used πŸ‘€

my $mpm = Apache2::MPM->show();
  • obj: $class ( Apache2::MPM class ) β€” the class name
  • ret: $mpm ( string ) β€” the name of the MPM. e.g., "Prefork".
  • since: 2.0.00

πŸ“š SEE ALSO πŸ“š

  • mod_perl 2.0 documentation.

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.


🫢 AUTHORS 🫢

The mod_perl development team and numerous contributors. β€” legends, every single one, we love a collab πŸ’œ


and that's the whole page bestie!! πŸ¦‹ this lil masterpiece is perl v5.42.3, dated 2026-08-20 β€” screenshot it, cite it, slay the day. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from