Optimization for 256 MB of ram server running apache/postgresql
Hi,
I'm on a VPS for 256 MB of ram planning to run Apache and PostgreSQL.
Does anyone have recommendations on some settings to use so I can avoid blowing up the server with memory problems due to unnecessary spawning of workers or something like that?
Thanks.
general principles always apply: use the absolute minimum number of modules. it's great for security, performance, and simplicity of configuration/maintenance. Apache comes with a boatload of modules these days, and you really usually need only a few. The default config should be OK performance wise unless you're really planning on some heavy traffic.
Postgres is another story tho. There are no modules, but the default config is absolutely minimalistic, it's intended for one local developer and that's it--even the network connectivity is disabled by default! Postgresql LOVES memory. the more you give it, the better it's gonna run. of course if your db is 10mb and you give it 100mb then you wont benefit much from the extra memory, but if it's 10mb and you give it 1mb then you're gonna be running very slowly. try to fit the whole db in memory if possible. postgres' memory allocation parameters are _extensive_. if you like to tweak for performance, you'll go gaga over them.
Generally tho, you won't know what settings you need until you load your data, your site, and you let it run under a normal load for a while. watch your logs like a hawk and 'learn' your site, how it runs, what gets accessed when, how the db is being used, is the system cpu or io bound, etc... THEN you can start really adjusting stuff. Donald Knuth said once that "premature optimization is the root of all evil" and running your own site will definitely demonstrate that. Log everything, otherwise you'll have nothing to learn from.
Similar Messages
-
EKM using the Azure Key Vault is now available for SQL Database and SQL Server running in Azure VM's
In preview today, you can create keys in the Azure Key Vault, and use them with Azure SQL Database, or SQL Server running in a Azure VM. Use the Extensible Key Management (EKM) for TDE, backup encryption, or cell level encryption. For more information, see
Extensible Key Management Using Azure Key Vault (SQL Server)
http://msdn.microsoft.com/en-us/library/dn198405.aspx.
The announcement:
Azure Key Vault in public preview
Key Vault offers an easy, cost-effective way to safeguard keys and other sensitive data used by cloud applications and services. Included are the following features:
Enhance data protection and compliance:
Protect cryptographic keys and sensitive data like passwords with keys stored in Hardware Security Modules (HSMs). For added assurance, import or generate your keys in HSMs certified to FIPS 140-2 level 2 and Common Criteria EAL4 standards,
so that keys stay within the HSM boundary. Key Vault is designed so that Microsoft doesn’t see or extract your keys.
All the control, none of the work:
Provision new vaults and keys in minutes and centrally manage keys, sensitive data, and policies. You maintain control over your encrypted data—simply grant permission for your own and third-party applications to use keys as needed. Enable
developers to easily manage keys used for dev/test and migrate seamlessly to production keys managed by security operations.
Boost performance and achieve global scale: Improve
performance and reduce latency of cloud applications by storing cryptographic keys in the cloud (versus on-premises). Key Vault rapidly scales to meet the cryptographic needs of your cloud applications and match peak demand.
Get started with Azure Key Vault by creating keys for applications you develop,
SQL Server encryption (TDE, CLE, and Backup), and partner solutions like
CloudLink SecureVM.
Key Vault is available now at no charge with discounted preview pricing starting on January 15, 2015.
For more information, please visit the
Key Vault webpage. For a comprehensive look at pricing, please visit the
Key Vault Pricing webpage.
Rick Byham, Microsoft, SQL Server Books Online, Implies no warrantyThank you for sharing this Rick.
Regards,
Alberto Morillo
SQLCoffee.com -
Resources for first java soap client/server endeavour?
Hello community,
Im looking for some good resources for setting up a soap server, on apache tomcat, to handle incoming soap messages and send a soap response to the client.
Any links to examples/sample code are greatly appreciated. I am completely new to webservices.
your help is appreciated, thank you.Christ, how did I mange to make those typos?
You need a webserver to accept the requests, and something like Tomcat to run your web service. Since Tomcat has a webserver (doesn't it include Apache?) already, Tomcat is all you need, but it won't really care whether you send some XML using HTTP or HTML form data using HTTP. It's still HTTP. -
I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run on OS 10.6.8. with 2 GB RAM, 4 GB better, but it won't open. Is my configutation too slow?
Looks as if you're just at the minimum specs - http://www.apple.com/logicpro/specs/. Says 2GB minimum, 4GB recommended. And 2GB of RAM is all the RAM the 1,1 can handle. If I were you I would call Apple's App Store service center - you have the minimum requirements, as I read it, but perhaps you need a faster processor?
I had a 1,1 but sold it when I bought my late 2011 in March of this year - maybe it's time to look at a new machine?
Clinton -
Últimamente Photoshop CC 2014 se detiene fusionando las capas al hacer panoramas. Primero edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb RamÚltimamente Photoshop CC 2014 se detiene fusionando las capas al hacer panoramas. Primero edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram -
Error comes up in iTunes on check for updates "The iTunes update server could not be contacted. Please check your internet connection, or try again later." Currently connected to the internet, on HP Laptop running latest version of Windows 7.
I get the same problem running the diagnostics. Says network connections are present and in the green, but unable to connect to iTunes Store.I downloaded the Microsoft Autoruns package and ran it. There are no programs in the LSA Providers tab, and Apple's Bonjour is the only program in the Winsock Providers tab. I also did the "netsh winsock reset" and rebooted. It didn't fix the problem. Any more ideas?
-
Hi All,
We Have implemented AD RMS in our organisation recently.But the Problem we are facing here many users those are Ms office 2013 we will get the error"The Data Received from the server running AD RMS didn't match the expected format.contact
your system administrator for further investigation." and those who are in Ms office 2010 Professional it says
"The service is Temporally unavailable.Ensure the you have connectivity to this server.This error could be caused if you are working offline.Proxy setting are preventing your connection or intermittent network issue."
Below are the workaround did,
1.Able to reach to Our pipeline ADRMS cluster.
2.We have a valid Certificate.
3.if we type https://adrms.ourdomain.com its working fine.
4.Manually put the registry setting for effected computers.
5. Applied the Hotfixes:MicrosoftFixit50903,KB2627273.
Kindly help or suggest us to resolve the above issue as many computers in domain are not working with IRM.
Thanks and reqard,
Mohammed Siddiq.Hi Mohammed,
Were you able to fix the issue with CRL disablement?
Did my post help you or make you laugh? Don't forget to click the Helpful vote :) If I answered your question please mark my post as an Answer. -
Report server running in integrated mode , but cannot deploy reports again and again prompts for login
Nur MondalHello,
How are you deploying the reports? Via Visual Studio, Report builder or manually uploading RDL files?
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
Vhost configuration for Adobe Media Server running under linux.
Please help me with Vhost configuration for Adobe Media Server running under linux.
I was running a media sharing website for which I wanted to use Adobe Media Server.
To use, AMS, I disabled the already installed Apache server and installed AMS along with the built in Apache server. I could successfully install AMS and could login to AMS Admin Console through my IP number.
My existing website, www.mydomain.com is having its contents located at:
/home/mydomain/public_html
(Directory created under the old version of Apache not bundled with AMS)
Users will be uploading their videos, which will get transcoded and will be delivered to the website visitors in the existing scenario.
To use this website with AMS, this is what I did:
I created a folder for my domain, www.mydomain.com as below
/opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
Copied Application.xml and Vhost.xml from /opt/adobe/ams/conf/_defaultRoot_/ and pasted them in /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
In the Application.xml file there are 2 entries:
<Alias name="mydomain.com"></Alias>
<AppsDir>${/home/mydomain/public_html}</AppsDir>
Please help me with further steps to be completed:
Do I need to create a separate VirtualHost entry in the Apache installed with AMS?
If yes, can I specify already existing document root for my website (/home/mydomain/public_html) or do I need to create a separate folder under webroot/Apache ?
If yes to point 2 above, then do I need to copy all the existing contents from /home/mydomain/public_html to the newly created folder ?
I hope, I can serve all my static contents like html pages and php and media like video/audio. In that case do I need create alias to my Media/Alias folder or AMS will automatically start streaming when a video/audio is requested ?
What other steps do i need to complete?
Any help in this regard would be highly appreciated.
Thanks and RegardsDear sir or madam,
Here is Letswin Technology, which specializes in global servers, web hosting, VPS, VPNj. If anything I can do for you, pls contact us!
Have a nice day! -
Optimize for ad hoc workloads.
Hello all,
I was refering BOL documentation on 'optimize for adhoc workloads' option and when this is enabled the first run of the adhoc query gets 'compiled plan stub'(plan is not cached) and upon on second run,it gets 'compiled plan' (plan is cached).
I am wondering if there is any option where we can tell sql server, to make it a 'complied plan' at 5 run(instead on the second run).
Thanks.
Hope it Helps!!If you feel that this is important, submit a request on
http://connect.microsoft.com/SqlServer/Feedback.
You should make an effort to clearly spell out why you think this would be a benefit.
I guess that one reason they did it the way they did is that this is simpler. For instance, they don't need to maintain a counter for the shell query.
Erland Sommarskog, SQL Server MVP, [email protected] -
Does Windows 2008 Server run ok under Mac Mini Bootcamp?
Does anyone have any experience of installing and running Windows 2008 Server on a Mac Mini (of which has either Mac OS or Mac OS Server installed), under Bootcamp?
I currently have an old Dell with Windows 2008 server which acts as my Domain Controller, Exchange Server for a small home-office network. It's due an upgrade as the hardware is so old (and noisy!) and like the idea of having a nice compact, quiet Mac Mini, but want to make sure it can carry out the same duties under bootcamp on Win2008?Windows 2008 can be installed in Boot Camp. However I don't believe it is officially supported by Apple so there may or may not be issues with installing the Boot Camp Drivers (or future updates to the Boot Camp drivers.) Not something I'd be recommending for a "production" environment. If this is a test/dev system, then probably worth trying, depending on how critical your network uptime is.
Also, you didn't mention if your Dell came with Windows 2008 preinstalled, but if it did, then likely it has a "branded" version of Windows that won't activate correctly on non-Dell hardware. (If your Windows disks have "Dell" on them, they won't work with the Mac.) So you may need to purchase a retail or volume license copy of Windows 2008.
In general, for a server running as a DC & Exchange, you'd want RAID1 as a minimum so that would be the Mac Mini Server, not the "desktop" Mac Mini. Unless you have one lying around, you're looking at something around $1500-$2000 to start, depending on whether you can transfer your existing Windows 2008 & Exchange installations. (Another $500-$2000 depending on what vesions of Windows & Exchange.) And probably 8GB of RAM since Windows 2008 & Exchange on 4GB is pushing it. Considering the costs, I suggest you look at the Dell T110 series or the HP Proliant 110 series. Both lines are very quiet and are supported for Windows 2008 from the factory, including Windows Small Business Server, which includes Exchange. While not as small as a Mac Mini, they are mini towers and about the size of a typical PC desktop.
If you really wanted a small footprint, then HP has a "microserver" series. You'd probably need to call HP to get the build you want as the online ordering is limited for that model. From Dell, there is the Zino model desktop. Again, not supported for a "server", but you were going to consider a the non-server version of the Mac Mini, then the Zino has at least a chance of you reusing your existing versions of Windows if they're Dell branded, thus saving your something in the range of $500-$2000 for new software. (But I would NOT recommend a non-server chassis without RAID1 hard drives, so the Zino is not my choice. I just offer it as a possibility if you accept the risk of an unsupported installation, as would have been installing Windows 2008 in Boot Camp.)
So yes, it will work. But I wouldn't recommend it for a production environment, especailly if you have the "desktop" computer without RAID1. -
For Siebel - Agent on Siebel server manager
Hi,
I need to load data to SIEBEL using the SIEBEL KM's (10.1.3.5 Version). The pre requisite is "ODI agent should run on the same machine where the SIEBEL srvrmgr runs".
So should i install ODI Server on the same machine where Siebel server is installed? or Do we have any other options?
Thanks in Advance,
Ram Mohan T.Hi Ananda,
If i have a requirement that, these two servers are at different machines, what will be the workaround needed.
1) Do i need to install ODI client in the Siebel server machine? or
2) Just copy the ODI installed folders to that siebel server machine and run a agent over there?
or any other way to run the agent on Sieble server machine.
Waiting for your reply.
Ram Mohan T. -
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
Hi All.
I have this request.
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
We have jobs scheduled on BODS running smoothly and absolutely fine.
But to check, i am logging into the admin console and check for the jobs status.
I would like to have an email to be received from BODS after each job is finished.
It could succuessful. Or it could fail.
Whatsoever, i wish to receive an email alert as soon as a job is finished.
Can anyone advise me as to whether this could be made possible.
And if yes, how this could be done.
Thanks for your help in advance.
In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
Is there any option similar to that in BODS ?
Also would like to know :
how to use the smtp_to or mail_to functions ?
how to set up the smtp server for this ?
thanks
REgards
indu
Edited by: Indumathy Narayanan on May 31, 2011 3:47 PMHi.
Since am new to this BODS. I need some help.
I already have many jobs which are running absolutely fine.
And when a job runs, and finishes, am able to see the trace saying
e.g. :
Job_abc is completed successfully.
We got the smtp service activated for our test server.
and we hae a group email id.
I have put the details of the smtp server / ip address / and said apply restarted.
The i created a simple test script as below :
print (' Before email ' );
smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
' the job has failed', 0, 0);
print('After Email ');
It does send a email to as per smtp_to whatever email is specified.
But how to differentiate between a job success
And a job which has failed.
I wish to have a mail which says on the subject :
'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
==> IF it is a success
OR
'Job ' || job_name() ||' on ' || host_name() || ' has failed'
==> if it has failed
How to make the system identify, whether
to send a success message or a error message whatever
Could anyone advise.
thanks
indu -
Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2
1. Client Os : Windows 7 Pro
2. Server OS : Windows Server 2012R2 with RDS broker and RDS Gateway server with 3.part Certificate with friendly name sky.mti-itservice.no activated.
The main problem is following: The RDP logon session never ends
Any ideas ?
Regards
Kenneth Knudsen
Email : [email protected]
mvh Kenneth Knudsen MCSE 2003 HP ASEHi Kenneth,
Here for your case suggest you to configure RDP session time limit so that your user can disconnect\log off once the specific time limit reached.
You can setup the session time limit in different method.
1. Open the Server Manager, select Remote Desktop Services.
2. In Remote desktop Services, in right side you can drop down to collections.
3. Select the collection which you want to edit the settings.
4. Under collections Properties, select Task and then Edit Properties.
5. In Properties dialog box, select Session.
6. You can find all thetimeout settings under session collection properties; edit according to your requirements and then OK.
And apart also by group policy setting as below.
Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
- Set time limit for disconnected sessions
- Set time limit for active but idle Remote Desktop Services sessions
- Set time limit for active Remote Desktop Services sessions
- End session when time limits are reached
Please check which setting suitable for your environment and you can apply for your case.
[Forum FAQ] Restrict number of Active Sessions in RDS 2012 and 2012 R2
https://social.technet.microsoft.com/Forums/en-US/00c2252b-8ec0-489f-8da2-07a434a9b5a2/forum-faq-restrict-number-of-active-sessions-in-rds-2012-and-2012-r2?forum=winserverTS
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Reports Server/running reports on the web.
I am trying to configure my web server to run reports on the web. I have followed the instructions provided by Oracle, but some is not clear. When i try to run report on the browser, i get the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Oracle documentaion say the following about the steps to configure the web server:
1-Start your Web server by entering the following:
2-Start your browser.
3-Create a listener.
4-Configure your Web server mapping and note the physical and virtual directories. For example:
I have done all the steps above except creating a listener. The documentation doesnt explain that step at all.
I have created a cgi-bin directory and made it excetable and copied the rwcgi60.exe from reports server machine to the web server machine. I also copied the TNSNAMES entry for the web server from the reports server machine to the web server machine.
Here is the command i use(just trying to make sure that web CGI is responding, but it doesnt work)
http://web_server/scm/cgi-bin/rwcgi60.exe
Other question: On the server machine, i have 3 oracle directories: ORA81, ISUITES, 806, which one should be the home directory for the reports to work on the web??
I am using oracle 8.1.7 with 9iAS release 1.
ThanksPlease note that our CGI servlet is only used as a migration point for
people with legacy CGI. It is not intended to support people with new
development to -- we encourage you to use JSP and servlets.
Thanks,
Michael
Savitha wrote:
>
Thanks Wei,
Savitha
"Wei Guan" <[email protected]> wrote in message
news:8itate$332$[email protected]..
Yes, WebLogic has CGIServlet to handle CGI, refer to document for details.
Cheers - Wei
Savitha <[email protected]> wrote in message
news:8isq8i$ocn$[email protected]..
Does Web logic Support CGI ?
Need to connect the Web Server with the Oracle Reports Server running
on
a
separate machine.
Which is to be referred to as CGI_Virtual Directory?
Thanks ,
Savitha
Thanks,
Michael
-- BEA WebLogic is hiring!
Check our website: http://www.bea.com/
Maybe you are looking for
-
Problem with WLST in weblogic application server 10.3 on solaris 10 x86
Hi Friends, I installed Sun Solaris 10 on my desktop x86. I am able to install oracle weblogic application server 10.3. I created one domain and I am trying to start AdminServer on that using WLST command. Before that , I started the admin server fro
-
Can't see my 3TB lacie external drive (for Time Machine)
since upgrading to Yosemite my Time Machine backup won't operate, says the drive is Read Only. Don't see where I can change this, I have verified and run repair and looks good but still no Time Machine backups will function, last successful one was w
-
How do I automatically or manually add incoming e-mail addresses to my address book?
How do I automatically or manually add incoming e-mail addresses to my address book?
-
i can't open my iPhoto, it was working very slow and now its not working at all, when i try to open it it shows this message: The application "iPhoto" unexpectedly quit while trying to restore its windows. Do you want to try to restore its windows a
-
Release of JavaTM 2 Platform, Standard Edition v1.4
Does anyone know when the JDK1.4 version is to be released?