I am planning on renting a VPS.  How much memory is required for a base setup of Debian, Apache, Mysql, PHP?  By base, I mean not considering traffic (which will be below 1k hits a day). No complicated databases or memory eating scripts.  For reference, I would consider 512MB more than I need. (But i'm unsure of how right I am.)    Possible duplicate:   The difference would be, I am specifically asking about Debian, Apache, Mysql and PHP by default Debian configuration. No memory tweaking or replacing Apache with a lighter daemon.  The other question also has wildly inconsistent answers.
272
This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?
102060
I have 5 computer systems in our small office. From my basic understanding of Virtualization technology, I think I can virtualize the 5 systems into one big virtual system. I wish to confirm this.  So, for example, if I have 3 GB of RAM and 2 cores on each system, my question is:-   Can I make one big virtual system which will have 15 GB of RAM (3 * 5 sysems) and 10 cores? If the answer to the above question is yes, which is the best free and Opensource software/hypervisor to do this? Can Oracle VirtualBox be a good candidate?   I am a beginner in Virtualization technology so please pardon if the questions are too simplistic/nonsense.
17030
How can I backup a large database in mysql? And what is the best way to replicate the database?    what i'm looking for is backing up large database with large amount of data in a small time limit then restoring it within a small time of limit??
108577
Would the following works fine without any issues? I have apc cache installed, the other packages the usual php configuration.   yum update php   would that be enough?  it is an active server, so want to make sure and see what should I take into consideration to make this less painful.
38883
I was following this tutorial:    So far, I installed mysql-server mysql-client libmysqlclient-dev, and I was suppose to tell MySQL to create its database directory structure where it will store its information using sudo mysql_install_db.  $ sudo mysql_install_db  [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize [ERROR]   The data directory needs to be specified.   I thought running mysqld --initialize would solve the issue:  $ mysqld --initialize   mysqld: Can't create directory '/var/lib/mysql/' (Errcode: 17 - File exists) [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). [ERROR] Aborting   How do I tell MySQL to create its database directory structure where it will store its information?
26365
I'm creating a web directory that will allow individual users to signup for an account and store essentially text documents in a mysql database entry.  Initially there will likely be only a few hundred users, but we hope to have 10,000 to 100,000 at some point.  And each user would be able to upload 100-200 "documents".  Would it be more efficient to create one massive table, indexed by a user number?  Which could theoretically grow to be 20,000,000 entries.  Or to go ahead and create a table for each user with their individual documents?  I'm assuming it's not healthy to have thousands of tables in a database, but I really can't find any concrete data on this.
91723
I was reading through the hardware requirements of  and it says:     1 GB of RAM (1.5 GB if running on a virtual machine)   Why does running on a VM require more resources?
57157
What is the minimum RAM needed for a Minecraft server (without using custom servers)? There will be at the most 5 players, the VPS will be OpenVZ.
86922
how many files in a diretory will be decrease server performance? I have a website that contain hundreds thousand of images ( >a million in separated directory). I wonder if it will effect the performance.  server detail: centos, apache, php 5
120792
I have a webserver that has 8GB of ram and is running a pretty intensive php site (1 site) that does file manipulation, graphing, emailing, forums, you name it.  The environment is far from static which leads me to believe that very little could be gained from caching anything in ram since almost every request to the server creates new or updated pages.  And a lot of caching is done client side so we have a ton of 304 requests when it comes to images, javascript, css.  Additionally I do have language files that are written to flat files on the server where cached ram definitely is good rather than reading from disk.  But there are only a handful of files like this.  In about a two weeks I've gone from having 98% free ram to 4% free ram.  This has occurred during a time in which we also push several large svn updates onto the server.  My question is whether my server will be better tuned if I periodically clear my cache (I'm aware of Linus Torvalds' feeling about cache) using the following command:  sync; echo 3 &gt; /proc/sys/vm/drop_caches   Or would I be better off editing the following file:  /proc/sys/vm/swappiness     If I replace the default value of 60 with 30 I should have much less swapping going on and a lot more reuse of stale cache.  It sure feels good to see all that cache freed up using the first command but I'd be lying to you if I told you this was good for the desktop environment.  But what about a web server like I've described above?  Thoughts?  EDIT: I'm aware that the system will acquire memory as it needs it from the cache memory but thanks for pointing that our for clarity.  Am I imagining things when Apache slows down when most of the server memory is stored in cache?  Is that a different issue altogether?
5936
I need to move 20 Gb MySQL database from on Debian server to another. The problem is that there is no way to create its backup since there are almost no free HDD space on the source server. What would you suggest?
4648
We are studying implementing some virtualized servers here, but we don't know what will be better suitable for us. Some folks are saying better have two huge servers, and others are saying have like a ten middle-end servers.  We have a legacy Visual Foxpro application, which nowadays run on Dual Xeon E5405 @ 2GHz and 16Gb of RAM. The currently server its getting too slow due the number of active users and process running on it. Virtualizing this server will give us the benefit of an faster disaster recovery.  So the question is, having like ten physical servers running at 1.7GHz and 4Gb of RAM, we could virtualize one server into 4 machines, and have one virtualized server running at 6.8GHz and 16Gb of memory? If yes, there is some how if one machine stops, automatically manage this virtual machine to another one, and execute the appropriate maintenance on it, and later back to it again?
53232
Is there a (technical or practical) limit to how large you can configure the maximum number of open files in Linux?  Are there some adverse effects if you configure it to a very large number (say 1-100M)?  I'm thinking server usage here, not embedded systems.  Programs using huge amounts of open files can of course eat memory and be slow, but I'm interested in adverse effects if the limit is configured much larger than necessary (e.g. memory consumed by just the configuration).
89248
I have just downloaded "ubuntu-14.04.1-desktop-amd64.iso" and "ubuntu-14.04.1-server-amd64.iso" through "".   Please can someone confirm the maximum RAM that is supported.  According to many sites, Maximum RAM supported by the OS  ubuntu-14.04.1-desktop : " 2^64 bytes " -- Kindly confirm  ubuntu-14.04.1-server : " 2^64 bytes " -- Kindly confirm
2088
I want to estimate the disk space for 1 million rows.    Currently, I have 8527959 rows, Data Length of 744 MB and Index Length 989.4 MB.  Please let me know if my calculations are correct.  Total Data Length for 1 million rows  Data of 744MB consists of 46500 pages of 16KB blocks (InnoDB page size)  If 46500 pages consist of 8527959 rows, 1 page consists an average of 183 rows.  So, 1 million rows need (1,000,000/183) pages= 5465 pages of 16KB  So, 1 million rows of data need 87.4MB.  Total Index Length for 1 million rows  Indexes of of 989.4MB consists of 61837 pages of 16KB blocks (InnoDB page size)  If 61837 pages consist of 8527959 rows, 1 page consists an average of 138 rows.  So, 1 million rows need (1,000,000/138) pages= 7247 pages of 16KB  So, 1 million rows of data need 115.9MB.  Total disk space (approximate) for 1 million rows  Total data length+Total Index Length = 87.4MB + 115.9 MB = 203.3 MB  Is this correct?
7298
What is the maximum size for a MySQL table? Is it 2 million at 50GB? 5 million at 80GB?  At the higher end of the size scale, do I need to think about compressing the data? Or perhaps splitting the table if it grew too big?
82916
So I have 4 GB RAM + 4GB swap. I want to create a user with limited ram and swap: 3 GB RAM and 1 GB swap. Is such thing possible? Is it possible to start applications with limited RAM and swap avaliable to them without creating a separate user (and not installing any special apps - having just a default Debian/CentOS server configuration, and not using sudo)?  Update:  So I opened terminall and typed into it  command: ulimit -v 1000000 which shall be like 976,6Mb limitation. Next I called ulimit -a and saw that limitation is "on". Then I started some bash script that compiles and starts my app in nohup, a    nohup ./cloud-updater-linux.sh  &gt;&amp; /dev/null &amp;... but after some time  I saw:    (which would be ok if no limitations were applied - it downloaded some large lib, and started to compile it.)  But I thought I applied limitations to the shell and all processes launched with/from it with ulimit -v 1000000? What did I get wrong? How to make a terminal and all sub processes it launches be limited on ram usage?