Wednesday, July 25, 2007

nfs failure caused ClearCase error

1. command "cd /;ls -l" hanged, while "ls" could work.

2. in /var/adm/atria/log/albd_log, "Daily View Space" normally takes less than 1 minutes. Now it hanged.

2007-07-22T04:30:03-04 albd_server(411): Ok: Job 5 "Daily View Space" (10430) Started.
2007-07-23T04:30:03-04 albd_server(411): Warning: Job 5 "Daily View Space" is still running -- skipping scheduled execution.

Check "cleartool schedule -edit –schedule". Confirmed that jobs were skipped.

3. command "su" failed with Segmentation Fault, while "su -" could work.

Check /var/adm/messages file.

Jul 24 12:05:43 dse-750-poc1 nfs: [ID 733954] NOTICE: [NFS4][Server:][Mntpt: /mnt]NFS server not responding; still trying
Jul 24 12:11:02 dse-750-poc1 last message repeated 1 time
Jul 24 12:12:12 dse-750-poc1 su: [ID 810491 auth.crit] 'su root' failed for qinl on /dev/pts/3
Jul 24 12:17:02 dse-750-poc1 nfs: [ID 733954] NOTICE: [NFS4][Server:][Mntpt: /mnt]NFS server not responding; still trying
Jul 24 12:25:02 dse-750-poc1 nfs: [ID 733954] NOTICE: [NFS4][Server:][Mntpt: /mnt]NFS server not responding; still trying
Jul 24 16:23:34 dse-750-poc1 nfs: [ID 733954] NOTICE: [NFS4][Server:][Mntpt: /mnt]NFS server not responding; still trying

Check the mount point /mnt. Could not cd into.

Log on to Server:, restart nfs daemon.
/etc/init.d/nfs.server start

After the nfsd started, every problem is gone.

Tuesday, July 24, 2007

Germ's waterfall

When my son was sipping some apple juice from a straw yesterday, he apparently lost in his thoughts. "Hey, what are you thinking about?", I asked him. "The germs in my throat must think the apple juice is a waterfall." I burst out laughing.

Wednesday, July 18, 2007

"How did you know it?!"

Every night, when my daughter is finally put to bed, she would ask for some water to drink. More than often, when we bring a glass of water upstairs to her bedroom, she would either hide somewhere, or pretend she is sleeping.

The day before yesterday, when my husband found her pretending to have felt asleep, he told her that he already knew that she was pretending. My daughter asked how he knew it. My husband joked with her that she would keep her mouth wide open if she was sleeping. And he showed her extravagantly how she would look like. Last night, when my husband went back to her bedroom with a glass of water, he couldn't help laughing. My daughter was lying on the bed with her mouth wide open, arms and legs stretched out, just like how my husband showed her the night before. When my husband told her that he knew she was pretending, she was very curious and a little bit disappointed: "How did you know it?!"

Heap size limitation on Windows

For 32 bit Windows systems, the OS support 2GB address space. However, the maximum leap size that a JVM can allocate is less than 2GB. This is caused by the way the JDK DLLs are rebased.

For JDK1.3, the heap size is around 1.2GB. Here is a dump of the DLL layout for JDK1.3.0 using listdlls.exe

Base Size Path
0x00400000 0x5000 d:\jdk1.3\bin\java.exe
0x503f0000 0x10b000 d:\jdk1.3\jre\bin\hotspot\jvm.dll
0x50220000 0x7000 d:\jdk1.3\jre\bin\hpi.dll
0x50380000 0xd000 d:\jdk1.3\jre\bin\verify.dll
0x50250000 0x17000 d:\jdk1.3\jre\bin\java.dll
0x50390000 0xd000 d:\jdk1.3\jre\bin\zip.dll
0x6bd00000 0x21000 C:\WINNT\System32\cwbaudll.dll
0x77f60000 0x5e000 C:\WINNT\System32\ntdll.dll
0x77dc0000 0x3f000 C:\WINNT\system32\ADVAPI32.dll
0x77f00000 0x5e000 C:\WINNT\system32\KERNEL32.dll
0x77e70000 0x54000 C:\WINNT\system32\USER32.dll
0x77ed0000 0x2c000 C:\WINNT\system32\GDI32.dll
0x77e10000 0x57000 C:\WINNT\system32\RPCRT4.dll
0x78000000 0x40000 C:\WINNT\system32\MSVCRT.dll
0x77fd0000 0x2a000 C:\WINNT\System32\WINMM.dll

So that leaves 0x50000000 - 0x00400000 = 1276MB contiguous address space. Run the following command:
rebase.exe -b 0x6D000000 \jdk1.3\jre\bin\*.dll \jdk1.3\jre\bin\hotspot\jvm.dll

It will increase the heap size to around 1.65GB.

Compare that to the listdlls output for jdk1.5, which allows around 1.45GB heap size (with JDK1.4.2, -Xmx1200M is the maximum)
0x00400000 0xc000 5.00.0040.0005 D:\jdk1.5\bin\java.exe
0x6d6b0000 0x189000 5.00.0040.0005 D:\jdk1.5\jre\bin\client\jvm.dll
0x6d2f0000 0x8000 5.00.0040.0005 D:\jdk1.5\jre\bin\hpi.dll
0x6d680000 0xc000 5.00.0040.0005 D:\jdk1.5\jre\bin\verify.dll
0x6d370000 0x1d000 5.00.0040.0005 D:\jdk1.5\jre\bin\java.dll
0x6d6a0000 0xf000 5.00.0040.0005 D:\jdk1.5\jre\bin\zip.dll

rebase.exe is from Visual Studio.
listdlls.exe is from

Tuesday, July 17, 2007

TFS Report rsErrorImpersonatingUser Error

Problem. Our Team Foundation Server has just been set up. When accessing TFS Reports, I got the error

Cannot impersonate user for data source 'TfsOlapReportDS'. (rsErrorImpersonatingUser)
For more information about this error navigate to the report server on the local server machine, or enable remote errors

1. Make sure the account AD\SmartTFSReports for TfsOlapReportDS data source has the correct password configured.
2. Start-> Run-> gpedit.msc-> computer configuration-> Windows Settings-> Security Settings-> Local Policy-> User right assignment-> Access this computer from the network-> check AD\SmartTFSReports account is included.
3. Get more detailed error by logging on to TFS report server, accessing the TFS reports. The detailed error message is: Logon failure: the user has not been granted the requested logon type at this computer.
4. Add AD\SmartTFSReports to administrator group.
5. You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table.

Another Problem. Team Explorer - red cross on "documents"-folder

Solution. This is client side problem. Run "devenv /resetuserdata": cleaned the client side cache on my computer under C:\Documents and Settings\\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache\

Thursday, July 12, 2007


Problem: when running Together Architect to audit a large code base, it reported java.lang.OutOfMemoryError

Solution: add java options when launching Together Architect.
-Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M

Tuesday, July 10, 2007

ClearCase check out from dyn view leds to blue screen

Problem: ClearCase check-out from dyn view leds to blue screen (BSOD)

Cause: The new version of TrendMicro OfficeScan conflicts with MVFS.
TrendMicro OfficeScan Program version 7.3; Engine version 8.500.1002.
ClearCase version: 2003.6.14

Workaround: Shutdown Trend OfficeScan service, if possible.
Solution: upgrade ClearCase to 2003.6.16.

Monday, July 9, 2007

albd error: [WINSOCK] Connection reset by peer

I played ClearCase too much recently that it stopped working on my desktop. My final attempt was to switch the albd account for the albd service on my desktop; and after that every local dynamic view stopped working. And everything related to albd service as well.

The albd service was up running. But it was not listening on 371 port (using "netstat -a"). The error message was like

"Could not contact albd server... [WINSOCK] Connection reset by peer...";

"albd_nt_init: Call to CreateFileMapping().. albd_svc_nt2.c\471"; and

"albd_contact call failed: RPC: Unable to receive; errno = [WINSOCK] Connection reset".

The only suggestive information I got from the internet was to change the value in HKLM\system\CuttentControlset\Control\Session Manager\Subsystems\Windows. In the string ...SharedSection*,*,*..., increase the third column from 512 to 3072. But even this failed.

My colleague volunteered to help me on this. He sat down beside me, took over the mouse, and .... started to dial IBM support. Unfortunately, the IBM support did not know more than I do, and he told me that he could do nothing more before I could to make albd service listening on 371.

I was in no mood of arguing with him, so I did what I could do as the last resort: reinstalling ClearCase. And guess what? It worked.

Friday, July 6, 2007

Ugly bird at Toogood pond

We went to Toogood pond last evening, and saw the ugly bird again. This time, the bird joined a group of Canadian goose families. So it did not look that lonely as last time.

I was trying to figure out what species is the bird, but failed. It is a black bird with some white blocks, the size of a Canadian goose but much fatter. I doubt it could fly with the weight. The head looks like a turkey, but with its webbed feet, it shouldn’t be. When we approached it, the ugly bird started to drag it body towards us, wagging its fat tail like a dog.