As folk have pointed out there are a number of things that can cause this type of problem.
Following a period of locking up have you tried looking at the console logs to see if it gives an idea of any software of hardware having problems? It's under Applications, Utilities, Console.
Thanks I didn't know that was there, I'm a bit confused by it though. DO I look under :all messages" or "console messages" and what am I looking for?
It crashed around 15.30 to 15.40 a couple of times. Here is the messages in "all messages" around that time...
15/01/2011 13:55:23 com.apple.backupd[2712] Backup completed successfully.
15/01/2011 15:40:12 kernel npvhash=4095
15/01/2011 14:17:29 awacsd[31] EAP-GTC failed. Retrying in 3600 seconds.
15/01/2011 15:40:12 kernel PAE enabled
15/01/2011 15:40:12 kernel 64 bit mode enabled
15/01/2011 15:40:12 kernel Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
15/01/2011 15:40:12 kernel vm_page_bootstrap: 1015239 free pages and 25145 wired pages
15/01/2011 15:40:12 kernel standard timeslicing quantum is 10000 us
15/01/2011 15:40:12 kernel mig_table_max_displ = 73
15/01/2011 15:40:12 kernel AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled
15/01/2011 15:40:12 kernel AppleACPICPU: ProcessorId=1 LocalApicId=1 Enabled
15/01/2011 15:40:12 kernel calling mpo_policy_init for TMSafetyNet
15/01/2011 15:40:12 kernel Security policy loaded: Safety net for Time Machine (TMSafetyNet)
15/01/2011 15:40:12 kernel calling mpo_policy_init for Quarantine
15/01/2011 15:40:12 kernel Security policy loaded: Quarantine policy (Quarantine)
15/01/2011 15:40:12 kernel calling mpo_policy_init for Sandbox
15/01/2011 15:40:12 kernel Security policy loaded: Seatbelt sandbox policy (Sandbox)
15/01/2011 15:40:12 kernel Copyright (c) 1982, 1986, 1989, 1991, 1993
15/01/2011 15:40:12 kernel The Regents of the University of California. All rights reserved.
15/01/2011 15:40:12 kernel MAC Framework successfully initialized
15/01/2011 15:40:12 kernel using 16384 buffer headers and 4096 cluster IO buffer headers
15/01/2011 15:40:12 kernel IOAPIC: Version 0x20 Vectors 64:87
15/01/2011 15:40:12 kernel ACPI: System State [S0 S3 S4 S5] (S3)
15/01/2011 15:40:12 kernel AppleIntelCPUPowerManagement: initialization complete
15/01/2011 15:40:12 kernel Sleep failure code 0x00000000 0x12000000
15/01/2011 15:40:12 kernel mbinit: done (64 MB memory set for mbuf pool)
15/01/2011 15:40:12 kernel rooting via boot-uuid from /chosen: A69B21D4-1ED3-3C93-856A-058D193BD21D
15/01/2011 15:40:12 kernel Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
15/01/2011 15:40:12 kernel com.apple.AppleFSCompressionTypeZlib kmod start
15/01/2011 15:40:12 kernel com.apple.AppleFSCompressionTypeZlib load succeeded
15/01/2011 15:40:12 kernel AppleIntelCPUPowerManagementClient: ready
15/01/2011 15:40:12 kernel BTCOEXIST off
15/01/2011 15:40:12 kernel wl0: Broadcom BCM4328 802.11 Wireless Controller
15/01/2011 15:40:12 kernel 5.10.131.36
15/01/2011 15:40:12 kernel Got boot device = IOService:/AppleACPIPlatformExpert/PCI0/AppleACPIPCI/SATA@1F,2/AppleICH8AHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/Hitachi HDS721010KLA330 Media/IOGUIDPartitionScheme/Customer@2
15/01/2011 15:40:12 kernel BSD root: disk0s2, major 14, minor 2
15/01/2011 15:40:12 kernel jnl: unknown-dev: replay_journal: from: 35574784 to: 40421888 (joffset 0x1d1c000)
15/01/2011 15:40:12 kernel FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001ff3fffe6c7ec4; max speed s800.
15/01/2011 15:40:12 kernel USBMSC Identifier (non-unique): 5743415A4131383332353132 0x1058 0x1021 0x2002
15/01/2011 15:40:12 kernel USBMSC Identifier (non-unique): AA0000000009778 0x5dc 0xb035 0x1000
15/01/2011 15:40:12 kernel jnl: unknown-dev: journal replay done.
15/01/2011 15:40:12 kernel hfs: Removed 15 orphaned / unlinked files and 1 directories
15/01/2011 15:40:12 kernel AppleYukon2: Marvell Yukon Gigabit Adapter 88E8055 Singleport Copper SA
15/01/2011 15:40:12 kernel AppleYukon2: RxRingSize <= 1024, TxRingSize 256, RX_MAX_LE 1024, TX_MAX_LE 768, ST_MAX_LE 3328
15/01/2011 15:40:06 com.apple.launchd[1] *** launchd[1] has started up. ***
15/01/2011 15:40:13 kernel yukon: Ethernet address 00:1f:f3:5b:21:24
15/01/2011 15:40:13 kernel AirPort_Brcm43224: Ethernet address 00:1e:c2:c0:cc:2c
15/01/2011 15:40:13 kernel IO80211Controller::dataLinkLayerAttachComplete(): adding AppleEFINVRAM notification
15/01/2011 15:40:13 DirectoryService[11] Improper shutdown detected
15/01/2011 15:40:14 kernel systemShutdown false
15/01/2011 15:40:14 blued[17] Apple Bluetooth daemon started
15/01/2011 15:40:26 mDNSResponder[18] mDNSResponder mDNSResponder-258.14 (Nov 18 2010 14:18:32) starting
15/01/2011 15:40:26 com.apple.SecurityServer[26] Session 0x5fbff962 created
15/01/2011 15:40:27 kernel AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
15/01/2011 15:40:27 kernel NVDANV50HAL loaded and registered.
15/01/2011 15:40:27 kernel Previous Shutdown Cause: 3
15/01/2011 15:40:27 kernel DSMOS has arrived
15/01/2011 15:40:27 com.apple.SecurityServer[26] Entering service
15/01/2011 15:40:27 mDNSResponder[18] Adding registration domain peterblandford.members.mac.com.
15/01/2011 15:40:27 awacsd[34] Starting awacsd connectivity-32 $Rev: 907 $ (Sep 29 2010 19:07:17)
15/01/2011 15:40:27 configd[14] bootp_session_transmit: bpf_write(en1) failed: Network is down (50)
15/01/2011 15:40:27 configd[14] DHCP en1: INIT transmit failed
15/01/2011 15:40:27 configd[14] network configuration changed.
15/01/2011 15:40:27 configd[14] setting hostname to "Study-iMac.local"
15/01/2011 15:40:27 awacsd[34] Connecting AWACS client: peterblandford hello.connectivity.me.com
15/01/2011 15:40:28 kernel IOBluetoothBNEPDriver: Ethernet address 00:1f:f3:a6:53:f1
15/01/2011 15:40:28 kernel Ethernet [AppleYukon2]: Link up on en0, 100-Megabit, Full-duplex, Symmetric flow-control, Debug [796d,6f48,0de1,0200,45e1,4000]
15/01/2011 15:40:29 configd[14] network configuration changed.
15/01/2011 15:40:31 configd[14] network configuration changed.
15/01/2011 15:40:32 fseventsd[57] event logs in /.fseventsd out of sync with volume. destroying old logs. (55649 29 60565)
15/01/2011 15:40:32 fseventsd[57] log dir: /.fseventsd getting new uuid: EE9EDCE2-ED9B-4692-BEA8-454C824E9D78
15/01/2011 15:40:32 bootlog[64] BOOT_TIME: 1295106003 0
15/01/2011 15:40:32 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[53] Login Window Application Started
15/01/2011 15:40:32 Parallels[93] Loading kernel extension prl_hypervisor.kext
15/01/2011 15:40:32 com.apple.usbmuxd[44] usbmuxd-207 built for iTunesTenOne on Oct 19 2010 at 13:50:35, running 64 bit
15/01/2011 15:40:33 Parallels[104] Loading kernel extension prl_hid_hook.kext
15/01/2011 15:40:33 Parallels[110] Loading kernel extension prl_usb_connect.kext
15/01/2011 15:40:33 org.apache.httpd[39] httpd: Could not reliably determine the server's fully qualified domain name, using Study-iMac.local for ServerName
15/01/2011 15:40:33 krb5kdc[41] sandbox cache error: database is locked
15/01/2011 15:40:34 kernel /drv/ HypApic.c:234 Host APIC phy 0xFEE00000 lin 0x5d93e000 ver 0x14
15/01/2011 15:40:34 kernel /drv/ HypVtd.c:3500 [vtdInit]
15/01/2011 15:40:34 kernel /drv/ HypVtd.c:3516 [vtdInit] VTD initialization disabled
15/01/2011 15:40:34 kernel /drv/ HypLowCache.c:173 Low cache initialized (6208 kB for 8 VMs on 4096 MB)
15/01/2011 15:40:34 kernel /drv/ HypSMBios.c:54 Failed to find SMBios entry point
15/01/2011 15:40:34 kernel /drv/ HypModule.c:174 Parallels IPI irq = 0 ipi = 0(0x0)
15/01/2011 15:40:34 kernel /drv/ HypModule.c:181 Parallels Hypervisor 5.0.9376.599993 loaded.
15/01/2011 15:40:34 kernel /prl_hid/ Parallels HID Helper started.
15/01/2011 15:40:34 Parallels[116] Trying to load kernel extensions, exit status: 0
15/01/2011 15:40:35 Parallels[119] Starting Parallels networking...
15/01/2011 15:40:35 Parallels[123] Loading kernel extension prl_netbridge.kext
15/01/2011 15:40:35 Parallels[130] Loading kernel extension prl_vnic.kext
15/01/2011 15:40:36 kernel [09a4d600][BNBMouseDevice::init][54] init is complete
15/01/2011 15:40:36 kernel com.parallels.kext.prlnet 5.0.9376.599993 has started.
15/01/2011 15:40:36 kernel [09a4d600][BNBMouseDevice::handleStart][54] Done
15/01/2011 15:40:36 kernel [09eb3700][AppleMultitouchHIDEventDriver::start] entered
15/01/2011 15:40:36 kernel [09ebfc80][AppleMultitouchDevice::start] entered
15/01/2011 15:40:37 kernel com.parallels.kext.vnic 5.0.9376.599993 has started.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QCocoaPrintPanelDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QCocoaPageLayoutDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QNSMenu is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QNSStatusItem is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QNSImageView is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 com.parallels.desktop.launchdaemon[70] objc[88]: Class QMacSoundDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:40:37 kernel com_parallels_kext_prl_vnic: created vnic0
15/01/2011 15:40:37 kernel com_parallels_kext_prl_vnic: created vnic1
15/01/2011 15:40:38 com.apple.SecurityServer[26] Session 0x30c5b6 created
15/01/2011 15:40:38 com.apple.SecurityServer[26] Session 0x30c5b6 attributes 0x30
15/01/2011 15:40:38 com.apple.launchd[1] (com.parallels.vm.prl_naptd) Unknown key for boolean: SuccessfulExit
15/01/2011 15:40:38 prl_naptd[156] Starting Parallels Network Daemon
15/01/2011 15:40:38 prl_naptd[156] vnic0: DHCP/NAT for 10.211.55.1-10.211.55.254 netmask 255.255.255.0
15/01/2011 15:40:38 prl_naptd[156] vnic1: DHCP for 10.37.129.1-10.37.129.254 netmask 255.255.255.0
15/01/2011 15:40:38 kernel prl_net::bindHw: (1) failed to setup promisc mode: 66
15/01/2011 15:40:38 kernel prl_net::bindHw: (1) failed to setup promisc mode: 66
15/01/2011 15:40:38 configd[14] network configuration changed.
15/01/2011 15:40:39 com.apple.SystemStarter[45] /Library/StartupItems/Tablet/Tablet: line 4: /Library/StartupItems/Tablet/TabletDriverRelauncher: No such file or directory
15/01/2011 15:40:39 com.apple.SystemStarter[45] Starting ProTec6 Server
15/01/2011 15:40:39 SystemStarter[45] Tablet Driver (174) did not complete successfully
15/01/2011 15:40:39 com.apple.SystemStarter[45] Starting Squeezebox Server
15/01/2011 15:40:39 com.apple.SystemStarter[45] /Library/PreferencePanes/Squeezebox.prefPane/Contents/server /
15/01/2011 15:40:40 sudo[192] root : TTY=unknown ; PWD=/Library/PreferencePanes/Squeezebox.prefPane/Contents/server ; USER=claudiablandford ; COMMAND=Launcher.app/Contents/Resources/start-server.sh
15/01/2011 15:40:40 com.apple.SystemStarter[45] /
15/01/2011 15:40:40 Parallels[209] Parallels networking sucessfully started
15/01/2011 15:40:40 Parallels[213] Restarting CiscoVPN
15/01/2011 15:40:40 SystemStarter[216] Unknown service: CiscoVPN
15/01/2011 15:40:41 Parallels[219] Starting Parallels Dispatcher Service
15/01/2011 15:40:41 fseventsd[57] event logs in /Volumes/Backup iMac/.fseventsd out of sync with volume. destroying old logs. (59986 1 60535)
15/01/2011 15:40:41 fseventsd[57] log dir: /Volumes/Backup iMac/.fseventsd getting new uuid: D280ADA9-47E4-406D-BEDB-D8D526F42DA8
15/01/2011 15:40:41 Parallels[223] Parallels Dispatcher Server sucessfully started
15/01/2011 15:40:41 kernel hfs: early journal init: volume on disk2s2 is read-only and journal is dirty. Can not mount volume.
15/01/2011 15:40:41 kernel jnl: disk2s2: replay_journal: from: 16031744 to: 16379904 (joffset 0x3a38000)
15/01/2011 15:40:41 kernel jnl: disk2s2: journal replay done.
15/01/2011 15:40:41 osascript[214] 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
15/01/2011 15:40:41 osascript[214] kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
15/01/2011 15:40:41 osascript[214] _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
15/01/2011 15:40:41 SystemStarter[45] The following StartupItems failed to start properly:
15/01/2011 15:40:41 SystemStarter[45] /Library/StartupItems/Tablet
15/01/2011 15:40:41 SystemStarter[45] - execution of Startup script failed
15/01/2011 15:40:41 loginwindow[53] Login Window Started Security Agent
15/01/2011 15:40:41 VersionCueCS2Daemon[225] warning: VersionCueCS2Daemon not started by mach_init process (parent pid: 1)
15/01/2011 15:40:41 VersionCueCS2Daemon[225] VCEnvironmentSetCWD() failed to set CWD to '/Applications/Adobe Version Cue CS2' <2>
15/01/2011 15:40:41 com.apple.launchd[1] (0x1001072b0.mach_init.VersionCueCS2Daemon[225]) Exited with exit code: 1
15/01/2011 15:40:42 WindowServer[101] kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
15/01/2011 15:40:42 com.apple.WindowServer[101] Sat Jan 15 15:40:42 Study-iMac.local WindowServer[101] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
15/01/2011 15:40:43 SecurityAgent[233] Showing Login Window
15/01/2011 15:40:43 kernel /drv/ HypIoctls.c:855 Ioctl VT-d status: 0
15/01/2011 15:40:43 awacsd[34] EAP-GTC failed. Retrying in 5 seconds.
15/01/2011 15:40:49 awacsd[34] EAP-GTC failed. Retrying in 10 seconds.
15/01/2011 15:40:55 kernel BootCache: hit rate below threshold (6960 hits on 13921 lookups)
15/01/2011 15:41:01 awacsd[34] EAP-GTC failed. Retrying in 20 seconds.
15/01/2011 15:41:19 SecurityAgent[233] User info context values set for peterblandford
15/01/2011 15:41:19 authorizationhost[230] Failed to authenticate user <peterblandford> (tDirStatus: -14090).
15/01/2011 15:41:22 awacsd[34] EAP-GTC failed. Retrying in 40 seconds.
15/01/2011 15:41:40 mdworker[260] Error, could not create MachMessagePort for com.apple.AddressBook.abd
15/01/2011 15:41:54 SecurityAgent[233] User info context values set for peterblandford
15/01/2011 15:41:54 SecurityAgent[233] Login Window Showing Progress
15/01/2011 15:41:55 SecurityAgent[233] Login Window done
15/01/2011 15:41:55 loginwindow[53] Login Window - Returned from Security Agent
15/01/2011 15:41:55 loginwindow[53] USER_PROCESS: 53 console
15/01/2011 15:41:55 com.apple.UserEventAgent-LoginWindow[144] ALF error: cannot find useragent 1102
15/01/2011 15:41:55 com.apple.UserEventAgent-LoginWindow[144] plugin.UserEventAgentFactory: called with typeID=FC86416D-6164-2070-726F-70735C216EC0
15/01/2011 15:41:55 com.apple.launchd.peruser.501[262] (com.apple.ReportCrash) Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
15/01/2011 15:41:59 fseventsd[57] check_vol_last_mod_time:XXX failed to get mount time (25; &mount_time == 0x10047f8b8)
15/01/2011 15:41:59 fseventsd[57] log dir: /Volumes/NIKON D700/.fseventsd getting new uuid: 5ED86EE8-490A-49C9-A84B-6CB3838F9601
15/01/2011 15:42:02 com.apple.launchd.peruser.501[262] (com.akamai.client.plist[309]) Bug: launchd_core_logic.c:4139 (24498):13
15/01/2011 15:42:04 awacsd[34] EAP-GTC failed. Retrying in 80 seconds.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QCocoaPrintPanelDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QCocoaPageLayoutDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QNSMenu is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QNSStatusItem is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QNSImageView is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.parallels.desktop.client.launch[302] objc[302]: Class QMacSoundDelegate is implemented in both /Library/Parallels/Parallels Service.app/Contents/MacOS/libQtGui.4.dylib and /Library/Parallels/Parallels Service.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/Current/Libraries/libprl_sdk.dylib. One of the two will be used. Which one is undefined.
15/01/2011 15:42:07 com.apple.launchd.peruser.501[262] (com.apple.Kerberos.renew.plist[297]) Exited with exit code: 1