Posts Tagged Amazon

How to add more memory to a Ubuntu Server with a Swap File

Types-of-Computer-MemoryIn linux Swapping is the process where memory is copied to the hard disk in space called swap space to free up physical memory. This is the same as virtual memory in linux. It is useful for two important reasons, First, when the system requires more memory than is physically available the kernel swaps out less used pages and gives memory to the current application (process) that needs the memory immediately. Second, a significant number of the pages used by an application during its startup phase may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache.

There are two ways of setting up swap space in Linux, the most common is to set aside a swap partition when setting up the machine, the second is to set up a swap file. The later is useful if you didn’t set up a swap partition or if you’re using something like an Amazon EC2 micro instance that does not come pre-configured with a swap partition. Read the rest of this entry »

, , , , , , , , ,

No Comments

Adding Swap to any EC2 Instance

Custom Swap IconHave you every worried about your EC2 instance running out of memory, especially when you’re running a EC2 Micro instance witch only comes with a total of 613MB of memory. Well If you’re planning on running anything other then a basic web page you may run out of RAM can cause all sorts of problems, mainly it will cause your instance to crash. Well there is a tried an tested method to get around this called paging or swap space. Read the rest of this entry »

, , , , , , , , , , , , ,

1 Comment

Running an Amazon EC2 Linux Instance

Ubuntu LogoWell if you read my previous tutorial then hopefully you’ll have an understanding of how to setup and run an Amazon EC2 Windows Instance, In this tutorial I’ll go through how to setup a Linux instance, don’t worry I’ll go through it from the start so you don’t need to read my Windows Tutorial if you don’t want.

I used Windows for my first tutorial because nearly everyone has used it at some point. However Windows has many drawbacks, the first and foremost being its Windows and it also takes 15 minutes to start-up. Linux only takes a few minutes to power up, however it does not have a nice GUI like windows, you’ll have to use the fun fun Command line, no seriously its more fun then windows, it doesn’t crash.

So how do you get one of these fast and reliable Linux instances up and running, well…. Read the rest of this entry »

, , , , , , ,


Running an Amazon EC2 Windows Instance

Cloud ComputingHello, first what is Amazon Elastic Compute Cloud (Amazon EC2)? Well you can think of it as having your own server running in one of amazons ever increasing server farms. Or as amazon put it

“Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.”

Basically amazon will rent you a computer, or as they call it an instance, in one of their data centres and charge you by the hour for it, prices range from $0.09 to $2.88 per hour, depending on the instance type you want to use. Once your instance is up and running you can control is in the same way you would any server, via Remote Desktop for Windows or SHH for Linux, depending on how you think. This means you can setup any server from automated remote backup systems to web servers and have it run on Amazons highly efficient infrastructure.

So how about it, you fancy running one of these servers. There’s nothing to lose I’ll talk you through a simple Windows Server setup, and so long as you shut it down after an hour it will only cost you 12 cents, you can’t complain about that. Read the rest of this entry »

, , , ,

1 Comment