High CPU with Moodle


 
Thread Tools Search this Thread
Top Forums Web Development High CPU with Moodle
# 1  
Old 11-08-2011
High CPU with Moodle

Hello list, I am managing a Moodle site on Apache2 server with Ubuntu.

There are 20-30 simultaneous users and the server get 100% CPU and it stop working.

The server is a dual core 3GHz and 4GB o memory. I think thta it is enough powerful machine for a Moodle site.

How could I configure it? Is there any debugging option for Moodle?

I try lots of different configuration for Apache, but it doesn't work.

Thanks for all your help and best regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

High cpu usage

I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 % I have rechecked script and there is no way i can make changes, Script contain only 2-3 commands. So... (4 Replies)
Discussion started by: Nakul_sh
4 Replies

2. Red Hat

CPU is high

Hi , We found CPU is high due to python process .Is this something that Oracle team should look on or Unix team has to work on it ?Could you please advise use of python process ? top - 12:03:03 up 43 days, 15:11, 5 users, load average: 1.53, 1.33, 1.23 Tasks: 126 total, 3 running, 123... (12 Replies)
Discussion started by: Maddy123
12 Replies

3. Red Hat

High CPU Utilization

Hi Experts, I need to understand few basic things regarding top command result from one of the node i have collected: Cpu0 : 4.6%us, 2.0%sy, 0.0%ni, 91.4%id, 1.3%wa, 0.3%hi, 0.3%si, 0.0%st Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : ... (5 Replies)
Discussion started by: mackjack87
5 Replies

4. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

5. Red Hat

apache high cpu load on high traffic

i have a Intel Quad Core Xeon X3440 (4 x 2.53GHz, 8MB Cache, Hyper Threaded) with 16gig and 1tb harddrive with a 1gb port and my apache is causing my cpu to go up to 100% on all four cores heres my http.config <IfModule prefork.c> StartServers 10 MinSpareServers 10 MaxSpareServers 15... (4 Replies)
Discussion started by: awww
4 Replies

6. UNIX for Advanced & Expert Users

high cpu utilization

good morning. just wanted to ask if there's a way to check what causes the high cpu utilization of a server for the past 2 months? My jffnms report resulted to high utilization for a specific server last month. is there a way to check via a command line? thanks (9 Replies)
Discussion started by: lhareigh890
9 Replies

7. AIX

DB2 high CPU

Hello dear friends, I have Lpar AIX 6.1 and there is DB2 installed. I have 8 Virtual CPU's configured on my Lpar and when I run nmon the CPU waiting time is always big.. I will provide screenshot for better realizing.. my question is what may produce so big waiting time?? Thanks in advance! (19 Replies)
Discussion started by: Vit0_Corleone
19 Replies

8. Shell Programming and Scripting

Script with high CPU utilization

Hi All, i have a script that finds the file with .txt .zip .Z .gzip that are 3 days old in directory /abc/def and removes them find /abc/def -name '0*.txt' -mtime +6 -exec rm {} \; find /abc/def -name '0*.zip' -mtime +6 -exec rm {} \; find /abc/def -name '0*.gzip' -mtime +6... (3 Replies)
Discussion started by: mad_man12
3 Replies

9. AIX

High CPU utilization

Hi am facing high cpu utilization on my sybase server. I have P550 Number Of Processors: 4 Processor Clock Speed: 1656 MHz CPU Type: 64-bit Kernel Type: 32-bit LPAR Info: 1 65-D837E Memory Size: 7840 MB in topas it shows Name PID CPU% PgSp Owner dataserv 565264 ... (1 Reply)
Discussion started by: vjm
1 Replies

10. Solaris

High CPU Utilization

Good morning, I need some help figuring out what's eating up my cpu. My application can't get enough cpu to do its job. this is a sunfire V440 2CPU's at 1/593 GHZ with 8GB of memory. In the morning hours the box is at less than 3%. I can't figure out what else is using the CPU. We use foglight and... (2 Replies)
Discussion started by: bbouhaik
2 Replies
Login or Register to Ask a Question
libapache2-mod-perl2-2.0.7::docs::api::Apache2::Module(3User Contributed Perl Documentalibapache2-mod-perl2-2.0.7::docs::api::Apache2::Module(3pm)

NAME
Apache2::Module - Perl API for creating and working with Apache modules Synopsis use Apache2::Module (); #Define a configuration directive my @directives = ( { name => 'MyDirective', } ); Apache2::Module::add(__PACKAGE__, @directives); # iterate over the whole module list for (my $modp = Apache2::Module::top_module(); $modp; $modp = $modp->next) { my $name = $modp->name; my $index = $modp->module_index; my $ap_api_major_version = $modp->ap_api_major_version; my $ap_api_minor_version = $modp->ap_api_minor_version; my $commands = $modp->cmds; } # find a specific module my $module = Apache2::Module::find_linked_module('mod_ssl.c'); # remove a specific module $module->remove_loaded_module(); # access module configuration from a directive sub MyDirective { my ($self, $parms, $args) = @_; my $srv_cfg = Apache2::Module::get_config($self, $parms->server); [...] } # test if an Apache module is loaded if (Apache2::Module::loaded('mod_ssl.c')) { [...] } # test if a Perl module is loaded if (Apache2::Module::loaded('Apache2::Status')) { [...] } Description "Apache2::Module" provides the Perl API for creating and working with Apache modules See Apache Server Configuration Customization in Perl. API
"Apache2::Module" provides the following functions and/or methods: "add" Add a module's custom configuration directive to Apache. Apache2::Module::add($package, $cmds); arg1: $package ( string ) the package of the module to add arg2: $cmds ( ARRAY of HASH refs ) the list of configuration directives to add ret: no return value since: 2.0.00 See also Apache Server Configuration Customization in Perl. "ap_api_major_version" Get the httpd API version this module was build against, not the module's version. $major_version = $module->ap_api_major_version(); obj: $module ( "Apache2::Module object" ) ret: $major_version ( integer ) since: 2.0.00 This methid is used to check that module is compatible with this version of the server before loading it. "ap_api_minor_version" Get the module API minor version. $minor_version = $module->ap_api_minor_version(); obj: $module ( "Apache2::Module object" ) ret: $minor_version ( integer ) since: 2.0.00 "ap_api_minor_version()" provides API feature milestones. It's not checked during module init. "cmds" Get the "Apache2::Command" object, describing all of the directives this module defines. $command = $module->cmds(); obj: $module ( "Apache2::Module object" ) ret: $command ( "Apache2::Command object" ) since: 2.0.00 "get_config" Retrieve a module's configuration. Used by configuration directives. $cfg = Apache2::Module::get_config($class, $server, $dir_config); $cfg = Apache2::Module::get_config($class, $server); $cfg = $self->get_config($server, $dir_config); $cfg = $self->get_config($server); obj: $module ( "Apache2::Module object" ) arg1: $class ( string ) The Perl package this configuration is for arg2: $server ( "Apache2::ServerRec object" ) The current server, typically "$r->server" or "$parms->server". opt arg3: $dir_config ( "Apache2::ConfVector object" ) By default, the configuration returned is the server level one. To retrieve the per directory configuration, use "$r->per_dir_config" as a last argument. ret: $cfg (HASH reference) A reference to the hash holding the module configuration data. since: 2.0.00 See also Apache Server Configuration Customization in Perl. "find_linked_module" Find a module based on the name of the module $module = Apache2::Module::find_linked_module($name); arg1: $name ( string ) The name of the module ending in ".c" ret: $module ( "Apache2::Module object" ) The module object if found, "undef" otherwise. since: 2.0.00 For example: my $module = Apache2::Module::find_linked_module('mod_ssl.c'); "loaded" Determine if a certain module is loaded $loaded = Apache2::Module::loaded($module); name: $module ( string ) The name of the module to search for. If $module ends with ".c", search all the modules, statically compiled and dynamically loaded. If $module ends with ".so", search only the dynamically loaded modules. If $module doesn't contain a ".", search the loaded Perl modules (checks %INC). ret: $loaded ( boolean ) Returns true if the module is loaded, false otherwise. since: 2.0.00 For example, to test if this server supports ssl: if (Apache2::Module::loaded('mod_ssl.c')) { [...] } To test is this server dynamically loaded mod_perl: if (Apache2::Module::loaded('mod_perl.so')) { [...] } To test if "Apache2::Status" is loaded: if (Apache2::Module::loaded('Apache2::Status')) { [...] } "module_index" Get the index to this modules structures in config vectors. $index = $module->module_index(); obj: $module ( "Apache2::Module object" ) ret: $index ( integer ) since: 2.0.00 "name" Get the name of the module's .c file $name = $module->name(); obj: $module ( "Apache2::Module object" ) ret: $name ( string ) since: 2.0.00 For example a mod_perl module, will return: mod_perl.c. "next" Get the next module in the list, "undef" if this is the last module in the list. $next_module = $module->next(); obj: $module ( "Apache2::Module object" ) ret: $next_module ( "Apache2::Module object" ) since: 2.0.00 "remove_loaded_module" Remove a module from the list of loaded modules permanently. $module->remove_loaded_module(); obj: $module ( "Apache2::Module object" ) ret: no return value since: 2.0.00 "top_module" Returns the first module in the module list. Useful to start a module iteration. $module = Apache2::Module::top_module(); ret: $module ( "Apache2::Module object" ) since: 2.0.00 See Also mod_perl 2.0 documentation. Copyright 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. perl v5.14.2 2013-03-12 libapache2-mod-perl2-2.0.7::docs::api::Apache2::Module(3pm)