General :: Can Apache Log Simultaneous Connections?
Jan 10, 2011
We just setup a Moodle server in Apache. We would like to track how close (if at all) we are getting to our MaxClients limit. Is there a log that will show simultaneous connections?If there is, can it be set to only log when specific numbers are hit?
Just moved over from the dark side (Vista) and was wondering how I can get two (or more) PPTP VPNs connected at any given time. I usually attempt to multi task (although swambo says I can't) and work on various clients' servers at the same time. The GUI network manager thingy only allows me to dial up one VPN at a time. Is there perhaps a cli version and if so where would I go to get a tutorial on this please. BTW, running F11 32bit. Tried Debian and Ubuntu as well and found F11 to blindingly fast on my DualCore Toshiba laptop. Pity I can't see the additional 1Gb of RAM though. (4Gb in total).
I really hope someone could help me with this problem. I've been stuck on this for a month.I am using the sftp command to upload files using a bash script.The problem is that it is extremely slow to do it this way. as many of you would know if you have shared server somewhere. I would use scp if remote server supported it, but it doesn't.
Anyway, If any of you have ever used FileZilla, in the Settings, if you go to "Transfers" there is a place where you can set the number of "maximum simultaneous transfers". This feature works wonders with SFTP (and FTP too). It really speeds things up. How do I accomplish this same thing with the sftp command... because I don't want to use a GUI. I don't even mind using FileZilla through the command line if possible... but it does not seem to be possible. I've been stuck on this for a month!!! I've searched everywhere and tried a lot of things with no avail...
except is there is a way to enhance mod_limitipconn.c to ensure that apart from restricting one connection allowed from a given IP, also set so that an IP can only connect on every set interval ?e.g.restrict the number of connections from a given source IP to say once every 5 minutes or so?if not mod_limitipconn.c, any other mechanism to do the expected result?
On my server I provide OCR file conversion service but the problem is when a user uploads a file and it's being converted then if you open another tab and try to load the site it won't respond until that conversion is completed. In other words until the PHP script finishes execution apace doesn't serve any other request to the same browser.
Here is my apache configuration:
Code:
ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid
[code]....
You can check what I mean if you try to upload and convert a file and while the file is converting try opening the site in another tab.
I'm working with a Ubuntu 10.04 LTS system with two network interfaces (both Ethernet). I wish to setup this system such that it is simultaneously connected to my local and an OpenVPN network and able direct traffic between the connections depending on what program is sending the traffic. The problem: Under my current OpenVPN configuration all network traffic is directed to the VPN.
In practice, I would like OpenVPN to operate out of one of my two network interfaces and leave the other interface connected to the local network. Then by default all network traffic should be directed to my local network unless I specify (on a per program bases) that certain traffic should go though the VPN. These two network connections can (should) stay completely independent of each other and do not need to talk to each other.
I have configured apache using mod_jk to front tomcat. Then I configured tomcat and my application to use https. but after that I cannot access it through https without adding port 8080 in the URL. I think I need to add some configurations to apache to cope with this situation, but I still couldn't find the proper config though I tried many.
'm running on Ubuntu and I've succesfully setup apache alongside with a working php & mysql configuration - other computers connected to the LAN can access it by typing in my ip: 192.168.0.9however I would like my webserver to be accessible by all internet users...I've got my ports.conf file in the apache setup to listen on ports 80 and 8080 this is my ports.conf:PHP Code:
I was looking around on Wikipedia, and ran across the UltraSPARC T2 processor. This is a processor with 8 cores (8 physical processors) and 8 threads per core (64 logical processors!)I'm aware of Intel's Hyper-Threading and other technologies, and I know collisions between the threads have the possibility of decreasing the processor's throughput.From what I know, the O(1) scheduler (and surely the current CFS scheduler) is aware of Hyper-Threading, and is careful with processor affinity for threads (mainly, it tries to fill every physical processor before giving any multiple threads, and it tries to keep processes that much move between logical processors on the same physical processor.)
However, although that certainly helps somewhat, I believe the largest gain can come if the compiler is allowed to re-arrange instructions, so that more than two threads can be run at once without collisions in one physical processor. For this to happen, I believe we'd need to come up with a new executable format that can store multiple threads in one file, so the scheduler can schedule them as one block.For example, with the current scheduler and executable formats, the UltraSPARC would appear as 64 logical processors. However, if we consider a system that consists entirely of thread-aware systems, it might look at it as 8 logical processors, and schedule eight processes at a time. Since only one process would exist on each physical processor, the compiler would be able to optimize and significantly reduce resource contention (which I mention below.)
We can look at one physical processor with 8 threads of execution (or any number >2.) If you run 8 different processes, as Linux would currently do, there would likely be a lot of resource contention. My guess is that most of the time, several threads would be waiting for the unit they need to become available. I feel that this is supported because I saw a number from Sun (I forgot where) that the correct optimization settings on their compiler can yield a 300% speedup, on a practical workload.Is there any infrastructure available for Linux that supports processors like the UltraSPARC T2, that have a high number of hardware threads per core? Also, I know this would be a large task to implement, and there would be hurdles (how do you mix multithreaded processes with single-threaded processes on one machine?), and I am wondering if others think there would be enough benefit to justify the effort.
My server gets ddos attacks. I dig into access logs and I saw that attacker ips doesn't have valid requests headers, like their browser application info or requested url info.I want to close those connections immediately, and if it's possible block those ips for a time period.Can I do that with Apache and iptables?I searched on the internet but couldn't find useful results. Probably couldn't search for the right words.
I have Linux installed on my laptop and now I have installed Linux on my external hard-disk too. I was planning to use the external harddisk as a backup medium for my data. I was planning to use data synchronization software and all that. Now I have realized when I boot from my external hard-disk I can't see the other hard-disk and vice-versa.
have a problem with my network-manager in ubuntu 10.10.when I dial one of my vpn connections, my other vpn connections be disabled and I can't use them!I tried to restart network-manager and gnome-panel, but it does't seem to solve this problem.
Each day I need to copy N files from a source location to a mirror at a specific time (where N is very large). Let's say I tell multiple CPUs to each run an rsync simultaneously on a subset of the files (network and disk bandwidth are not an issue). Ideally each CPU would be responsible for a disjoint subset of the N files, but in practice this is sometimes hard to guarantee. (Some of the source files might be "claimed" by more than one CPU.) As a result, sometimes rsync I and rsync J will both try to copy file F at the same time.
Using rsync -avz --delete --temp-dir=/tmp remote:/path/to/source/ /path/to/dest/, let's say rsyncs I and J both see this situation to start:
[Code]...
Now rsync J finishes copying but generates an error when it tries to move its version of FileB to /path/to/dest/ because there's already another FileB there that it didn't see when it started.
Does one of rsync's many options somehow handle this situation? Ideally I'd like an option that tells rsync, "Believe in yourself. You can do no wrong. Feel free to overwrite anything your little heart desires." so that it wouldn't complain about the FileB that has suddenly appeared mid-execution
I've setup an HTPC with xbmc, and I'd like to output the audio from the system to both my digital and analog outputs on my mother board. How do I do it? Can their be a script that duplicates the output of one to the other? Here's what aplay -l said:
How can I configure a single computer to work for multiple simultaneous users? I would like to have multiple keyboards and monitors on a single PC ... Is it possible? This set up I'm planning for CyberCafe, For cyberCafe business ROI is very slow... so was planning to have something like this....
-single CPU (Which would act as a server) -Multiple monitors, keyboards, Headphones etc....
If this works out then I would save a lot on my investments (OS cost, Hardware devices, electricity etc)
apache virtual host to limit the concurrent connections of virtual hosts? Taking into account the host of each virtual user's home directory can also have more than one subdirectory, which should be restricted to a subdirectory. Is beyond the control of the operation of these sites in a subdirectory. Best local restrictions or limitations to the overall situation.
Is it fair to say that connLimit and hashlimit are very similiar on Linux i.e. while hashlimit caters to limits for groups of ports, they both set the connection rate limit per host? How in IPTables, do I configure a policy that limits connections on a port that encapsulates the total sum of all connections from all hosts? i.e. I do not want to allow more than 6000conn/minute for port range that is the sum of all connecting hosts?
I recently installed Fedora 15 now, and during installation I set the internet connection manually, then did update and after reboot, the internet connection settings have been removed. Now I can not set because the network connection to the Internet Connection is inactive. I mention that before the update was functional internet connection.
following a new motherboard install I've just done a clean install of 10.10. At first, I was using the default network manager wifi to connect to my router - I had the upturned radar beam type icon in the top panel showing me the strength of the signal and access, by right clicking on it, to things like Enable Networking, Enable Wireless, etc. I read that installing WICD via synaptic would install wicd and remove the default network manager, so this what I did. My wifi is OK but I still have my upturned radar type icon and a new WICD icon in the top panel. I was expecting the upturned radar icon to disappear - is this correct? If I right click on the radar icon I can click on the Edit Connections option and change things - it appears I have both the default network manager and WICD working at the same time.
I am using the latest version of ubuntu(10.04 LTS) Desktop edition 32Bit. My problem is, after I open the firefox browser for first time after booting, a chain of new firefox windows start opening one after the another. In a matter of few minutes, there are like 15-20 instances of the browser opened.
I reinstalled the OS, but it is happening again and again. Is there some flaw in OS, something related to OS not compatible with my computer or some problem with the keyboard where some key(combination) is in a "press" mode (however, I dont see that happening on Laptop, the keyboard looks fine, plus Windows XP is working just fine).
This problem is forcing me to spend a larger time on Windows (which is bit cringy, after you get used to Ubuntu!).
GUI for several thousand simultaneous users. I know this post may at first seem a little out of place here when you begin to read it but please bear with me and I think you will understand why I am seeking feedback here. The company I work for (whose name I am withholding for now) is currently running a little over 5,000 Linux servers. Each of these servers has a minimum of 500 users, some as many as 3,000 users on them during a business day.
These servers are serious pieces of hardware. They have hot swappable raid arrays, redundant well most everything is redundant on them, frankly. Our conversion to Linux took place about 8 years ago. We have a proprietary database and development environment that was originally built in the 1970s. All but the most recent applications run in this proprietary environment, whereas our newer applications are using PostgreSQL and executables that are delivered using Apache web server and run inside each users Windows Explorer session on their local PC.
Really, our situation is rather typical of any organization that has legacy software that still gets the job done - with the possible exception of the **massive** number of total users we keep up-and-running every day. more, our next Linux servers are expected to support somewhere between 6,000-8,000 users [exact figure yet to be determined]. You may ask this is all very interesting but why are you posting this here?.
I am researching alternate ways of presenting attractive and functional GUI to users of Linux servers. I find the Ubuntu GUI to be attractive and very functional. the user input these forums get. Finally I am looking for points of view outside my own organization so I don't fall into the 'but we don't do it that way here' mental trap and miss a really great concept.
I have an idea about how to solve this growing challenge, and I want to present it here for your review and comments. For those who might think I have never worked on systems of this size; I can't imagine my opinion would be valuable remember this: The Ark was built by a passionate volunteer; The Titanic was built by paid professionals.....
I've got two soundcards in my new machine - Realtek ALC8892 onboard, with headphones plugged in, and an M-Audio Audiophile 192 with speakers. There's also HDMI sound out on the graphics card, but I don't use that.
Audio with PulseAudio's output through the sound card is fine. Audio with PulseAudio's output through the onboard sound is fine. If I set the output to Simultaneous Output, however, I get significant lag. Almost half a second. It's quite distracting.
Is this just a problem with PulseAudio's simultaneous output implementation, or is there a fix that I've overlooked? Running 64-bit Natty, btw.
It's so frustrating that it costs me much self-control not to express my feelings about that directly.So the problem is that XFCE4 and GNOME starts after I choose GNOME option at start-up (in GDM or KDM - I don't know which of them I have as default).If I choose XFCE4 at start-up there is no problem - only XFCE4 starts. Otherwise (if I choose GNOME) GNOME starts and XFCE4 at the same time.
I'm trying to launch CoverGloobus (a fantastic little album art and current song display) and Rhythmbox simultaneously through a BASH script. Problem is that when I attempt to run the script the first time, CoverGloobus doesn't launch, but Rhythmbox does. Here's my script as it is right now:
Code:
#! /bin/bash #Opens Rhythmbox and CoverGloobus rhythmbox && covergloobus done
I've double-checked the commands in gnome-terminal, and they're the right ones for launching the applications. Here's where it gets odd, though. The second time I run the script, CoverGloobus and Rhythmbox launch simultaneously. I've reproduced this scenario multiple times.
sat in an internet cafe with my music on loud using my headphones when my cell phone vibrated and upon taking off my headphones I noticed that pulseaudio was channeling all my music not only to my headphones but also to my regular monitor out!
So I was actually listening to music using my headphones when in fact the sound was LOUD on my laptop speakers...
Is there a way to configure the thing to not do that? I want the sound to be muted as soon as I plug in my headphones.
As the title says, I'm interested in two (or more) simultaneous keyboards, each with a unique layout. Everything I've researched indicates this should be possible, but I'm unable to get it to work. Regardless of how I set things up, all keyboards consistently operate as if they share the CoreDevice setting in xorg.conf. In the above config, both keyboards behave as if they're set for the USA layout. Changing the layout in gnome-keyboard-properties affects all of the connected keyboards equally, but has no provision for altering individual devices.
I'm writing a client-server program. There are more than 500 clients. I start a thread to process and response to each client and the processing needs some MySQL query. I'm looking for any possible hazards on my server!
1- Any limitation on "Maximum Simultaneous Socket Connection"?
2- Any limitation on using mysql?
3- As socket on Linux are file, Any limitation on number of sockets or threads?
I'm using a Linux server (Centos or Fedora or Ubuntu) and clients are both Linux and Windows.
I work for a company that uses Ubuntu exclusively. Without going too much into detail, we need a single sound-card to do up to 3 things at one time. What I mean by this, basically, is that there needs to be 3 instances listening to a card's line-in port at any one time. For example (these are made-up), Audacity listening to the line-in jack and making a recording of what it hears, a custom script that streams the input to the internet, and a third instance that listens to this input and runs different scripts based on what it hears.
Currently, our company sends out machines with 3 sound cards to do this. One card for each job. Of course, we'd like to save money and only send out one. Whenever we try to set all 3 programs to run off of one card, they error out and say something along the lines of "device already in use". Is there a way to go around this? If so, how? We use the command-line version of Ubuntu 8.04. It is NOT x64. The hardware may vary a bit, but is for the most part, consistent. (We order in batches of 50.)
i am using ubuntu 10.04 lts "lucid lynx", and has been encountering problems with audio recently.
i found out for some reason that my system fails to produce sound through pulseaudio, especially when an application is using it (e.g audacious).
the details of the problem:
1. i am using the pulseaudio equalizer from the repository, and i set a program (e.g. audacious) to use pulseaudio so that i can activate the equalizer.
2. while playing, all of my other applications lose the ability to produce any sound, and changing back to alsa during playback (which is using pulseaudio) in audacious indicates that the device is busy. examples include the loss of sound while playing a video from videos.
rough breakdown of what i want to (be able to) do: have sound for all applications using it, for example being able to play a video in videos from my browser and play music in audacious simultaneously.
is there a workaround for this? i'd like to think that there is, but so far my search returned nil.
how can I play audio (Mythtv - Play Music) simultaneously on two sound cards using ALSA drivers. I have two cards working well. One card is an onboard Intel cards, and the other card is a USB Audio card. Both cards are working well. I use the onboard Intel to output SPDIF to an amplified. The second USB card is bound to MPD service and it outputs an analog signal to a second amplified. I'd like to have the following configuration: Play to the default card with 5.1 passthrough, while the second card, connected to a second amplifier, plays an analog signal to the same audio played by Mythtv Play Music. In other words, I need to mix somehow and play the same audio on both cards.
Here is the list of cards:
root@mythtv:~# aplay -L null Discard all samples (playback) or generate zero samples (capture)