Showing posts with label Painful lessons learnt. Show all posts
Showing posts with label Painful lessons learnt. Show all posts

Wednesday, April 22, 2009

Microsoft Dynamics pains...

My organization has been using Microsoft Dynamics CRM and AX for almost 2 years now and have gone through one cycle of upgrades for both in that short time. And the reason? well, sad to say, is because both products fall short of what we wanted (and promised by vendor) initially as well as even now. Below are just a few examples of our disappointment:

1) AX Multi-timezone issue - we adopted the solution as a regional platform supporting 12 countries spanning 5 different timezones. Amazingly, the so-called enterprise class AX (previous version 4.0) cannot do this OOTB and even our vendor's promised workaround posed serious limitation to the way we do things. Having said that, the latest version 2009 does solve this problem.

2) CRM performance issue - The client side component of CRM is _extremely_ heavy (lots of small file fragments to load for a page and heavy use of javascripts) causing poor performance over WAN connections, adding substantial traffic to our regional corporate network (To make matters worse, network infrastructure across AP is still relatively poor, patchy and insanely expensive), and lastly requires reasonably powerful client side PC for snappy processing. We resorted to using Citrix to mitigate these issues (moving the load and traffic back to the server side) and even then, we are starting to find this "workaround" getting really expensive (Client license, rapidly growing Citrix farm increased hosting and management costs) as we scale up and throws our ROI right out the window. To top it off, the bloated and leaky (memory-wise) Internet Explorer in Citrix is NOT a good combination!

So in conclusion, IMHO, Microsoft Dynamics (especially CRM) is probably more suitable for small local shops rather than regional platforms with large number of users spread over geographically diverse locations.

Tuesday, February 3, 2009

More Anti-Virus problems! This time its McAfee!

OK, a couple of days ago, I was contemplating shelling out for McAfee as replacement for my household anti-virus standard after my bad experience with Avast!. Good thing I am using it in Office and have the opportunity to discover just how crappy McAfee is when it comes to memory consumption.
The screenshot above shows just how much memory the Mcshield service consumes... a whopping 660MB! And this is when it is idle (note the CPU consumption was only three percent!). This, coupled with a whole lot of Vista bloat, effectively caused my reasonably powerful laptop (Intel Core2 Duo T5600 with 2GB RAM) to slow to a crawl due to all the frequent swapping to virtual memory.

For what its worth, the Mcshield service does not consume that ridiculous amount of memory all the time. What I have observed so far is that it happens after I resume from hibernation or from a long period of inactivity in screen-saver mode. This really hurts productivity and user experience since those are the crucial times when I do want to use my computer immediately and not wait another fifteen minutes (sometimes even half an hour!) for all that virtual memory swapping activity to die down.

Suffice to say, McAfee is now off my list of potential replacement anti-virus products!

Sunday, January 18, 2009

Is browsing photos over your network S L O W? The culprit could be your anti-virus software!

For the longest time now, I have been tolerating some major pain-in-the-ass slowness when it comes to previewing files (especially photos and videos) directly on my NAS. I have conveniently put the blame on my WiFi connection as it can get pretty flaky in my noisy (I can detect up to five APs with signal strength of at least 50% in my vicinity!) multi-storey environment.

The last straw came recently when I wanted to do some major re-organization of my family media stored on the NAS. It was unbearably slow as each thumbnail in Explorer's "Large Icons" view was taking at least two seconds to show up. After some ten minutes, I gave up on my task and decided that its about time I find the root cause of this slowness.

Since I have been blaming the WiFi connection all along, I figured I should at least try to verify this. So I hooked up my laptop to the network via wired LAN (100basedT) and tried to browse the folder again. It certainly is faster but I'm still getting quite abit of lag; about half a second before each thumbnail shows up.

So it is not the WiFi connectivity. Next I switched my focus to the NAS. Could it be that the DNS-323 has poor network throughput? I tried a large file transfer from the NAS to my laptop over the wired connection. I managed to get a sustained transfer rate of 10.5 MB/sec (as reported by file transfer dialog in Windows Vista) which is decent for 100basedT network.

So it is not the network throughput. Could it be the SAMBA server implementation in the DNS-323? I did some research online and found this and this. Nothing conclusive there but seeing that my current version was only v3.0.24 and a new firmware for the DNS-323 is available, it led me to try upgrading firmware to v1.06 and upgrading Samba to v3.2.3. Unfortunately, I was still getting the same behaviour after both upgrades.

So it is not the SAMBA server. Could it be on the client side then? I started trying it using the various PCs I could find in the house; my wife's laptop (running Vista Business x86), my kids' laptop (running XP) as well as my HTPC (running Vista Ultimate x64). All exhibits the same behaviour. Just when I was about to give up, I gave it one last try on my Office laptop (running Vista Business x86). Lo and behold, the thumbnails showed up instantaneously!

Now we are making progress! I dig a little deeper into the difference in configurations and finally found the root cause of the problem.... and it was Avast! Anti Virus! I had it as a household standard while my Office laptop was using my Office standard issue which is McAfee. Once I turned off Avast!, the problem goes away.

Obviously, turning off anti virus protection is not a good idea. Therefore, one option is to switch to a different one such as McAfee since it has proven to work in my scenario. However, I'm not quite ready to junk my time and effort invested in Avast! just because of this nor do I want to shell out more money for McAfee.

I did a little more investigation and here's what I think is happening. Avast! by default will scan any file before opening it, not just executable ones. So when I am browsing the photos on my NAS in "Large Icons" view in Explorer, Explorer will need to open each file in order to generate the thumbnail and this means that Avast! will intercept and scan it (over the network and each file is about 3MB mind you) thus causing the delay.

Poking around the settings available in Avast!, I found out that I can setup an exclusion list. And by adding in the extensions for my images (i.e. *.jpg, *.gif, *.bmp), I effectively solve the problem. Here are the steps to finding the exclusion list in Avast!:
  1. Open the Resident Protection dialog by double clicking on the Avast! system tray icon;
  2. On the left, select the icon for "Standard Shield", then click the "Customise" button on the right;
  3. In the popup dialog, select "Advanced" tab and click on the "Add" button;
  4. Here, you type in the file extensions or paths for exclusion. Use of wildcards is possible.
Although I may have solved this particular problem, I am still puzzled as to why Avast! needs to scan all files and not just infectable files. Sure, by giving us the option to exclude file types/extensions in the configuration helps but this should not be an end-user's job since how many of us knows all the file types/extensions are infectable? Moreover, end-users are less likely to be tracking developments in new exploits hence may end up with out-dated exclusion lists and leave a gaping hole in their anti-virus protection.

Well, perhaps it is time to explore other anti-virus solutions out there in the market...

Friday, October 17, 2008

Trying out Tomato on WHR-HP-G54

Back in August, I upgraded the DD-WRT v24 firmware to SP1 on my router as part of routine maintenance. At first, everything seems to work fine but soon I noticed that QoS stopped working; Skype calls were getting dropped, frozen video on receiver side and slow web browsing when BT is running in the background.

I tried a couple of different configurations in QoS, from tweaking the max bandwidth settings to changing classifications and even the packet scheduler type. Nothing worked which pretty much left me with two choices; (1) rollback to the older version or (2) try out other flavors of alternative firmware. I decided to go with option (2) and try out Tomato since I have been hearing many good feedback on its performance and especially on its QoS reliability.

Upgrading from DD-WRT to Tomato is a breeze. Simply download the Tomato firmware (latest as of this writing is v1.21) and flash it using the DD-WRT web admin GUI. Just remember to make a note of the router password before you flash! (Detailed instructions here)

In under two minutes, I was running Tomato on my router with nearly all settings intact. The only settings that I found to have been lost are:
  1. Static DHCP lease
  2. WiFi Security (it defaults to none!)
  3. QoS (naturally since its implemented differently)
  4. WOL
  5. Lan domain name
Once I have configured QoS, I tried a web download and also surfed a couple of local websites while starting BT in the background. I found no noticeable decrease in the download and web surfing experience. Problem solved!

Of course, there is no perfect ending in the real world... A couple of things I had to give up for choosing Tomato over DD-WRT:
  1. VPN Gateway - The official builds do not offer this functionality but a quick google showed that there are people working on unofficial builds that included this feature. I will probably give that a spin once I am happy with stock features.
  2. Bluetooth Compatibility Mode - I require this feature as my router sits very close to my HTPC which I'm using a bluetooth keyboard to control. Since WiFi and Bluetooth work on the same frequency band, I have been experiencing frequent dropouts from my bluetooth keyboard when WiFi is on. Activating this feature on the DD-WRT seems to have reduced the interference quite abit. Since Tomato does not include this feature, I may have to consider relocating my router or my bluetooth receiver.

Friday, July 18, 2008

Stop Vista from messing up your display(s)... Part II

This is a follow up on the issue I had with Vista's multi-monitor support back in June. Just a recap, Vista tries to be smart by configuring your dual view displays (and their resolutions) automatically (unfortunately to its liking, not yours) upon certain triggers like when a user logs on.

After having done the fix described in my previous post, I managed to stop the screen flicking and screen reconfiguration at user log on and returning from a locked Windows session. But to my dismay, I was still getting weird behaviours with my dual monitor displays at times. i.e. changing my laptop display to secondary or even blanking it out completely.

After many hours of troubleshooting and googling, I think I have finally nailed the other triggers for the automatic configuration of dual view displays of Vista to the following:

1) If you have your external monitor plugged in (it doesn't matter whether the monitor is on or not) when booting Vista, it will assume that the external monitor is your default display (i.e. Display 1) and your laptop display is secondary (i.e. Display 2).

2) If your external monitor is plugged in and Vista is running, closing the lid of your notebook will cause the display configuration to change the default display to external monitor (if its not already default). Oh, and unfortunately, its not smart enough to switch back when you open the lid the next time.

If you have fiddled with "Display Settings" under "Personalization", you will have realized that you can change the default monitor back by checking the "This is my main monitor" checkbox. However, the setting will not stick and the next time one of the above happens, your external monitor becomes the primary display again.

The permanent fix I have found so far is to change the setting in the native display control panel provided by the hardware manufacturer instead. i.e. If you have a NVidia graphics card, use the "NVidia Control Panel" applet. If you are using the Intel embedded graphics card, then use the "Intel Graphics Media Accelerator" applet.

Hopefully, this will be the last time I'm going to blog on this topic. *fingers crossed!*

Friday, June 6, 2008

RAM upgrade... finally

Back in Feb, I took the poor man's route to improve performance in Vista running on my aging hardware; by adding a 1GB USB stick to activate ReadyBoost for under S$15. It did help somewhat but you quickly loose that perceived improvement when it still takes seconds to load and switch between windows.

I was seriously thinking of junking this box entirely in favor of a brand new setup (with maybe BluRay drive and HD capable graphics card thrown in) but figured this move probably won't go down well with the missus. Plus the fact that PC Show is just around the corner and maybe by then I can come up with a reasonably good excuse ahem.. reason to do just that.

Anyhow, this morning while browsing the HWZ price list, I noticed that the market rate for DDR400 1GB Ram modules has fallen somewhat (S$58 a pc now). A quick search on HWZ marketplace yielded a chap selling off his DDR400 2x1GB sticks for $100 and decided to jump at it. The sale went very smoothly (2mins in front of an MRT station was all it took) and the installation was a breeze; I was back up and running with 2GB in the box within the hour.

Vista now reports 60+% free memory after initial boot compared with only 30% free previously. And running outlook, three instances of IE (with about half a dozen tabs each), trillian, plus four gadgets on the sidebar leaves 40% memory free as compared to only 6% free previously. No more harddisk trashing when I switch windows or launch new applications. Morale of thee story is... If you want to have a usable Vista system, you will need 2GB of RAM at least. ReadyBoost can certainly help alittle but ultimately, it is the amount of RAM that makes the difference.

Still no joy on aero though but that is because I'm running on embedded graphics that is four years old. Perhaps I should start sourcing for a second hand AGP 8x graphics card next...

Thursday, June 5, 2008

Home network topology recap

Back when I started exploring options for home networking, I pretty much concluded that WiFi was the best option, or rather the only cost effective solution for me at that point in time. (*) I was up and running very quickly as all it took was to setup the router (I had an existing 802.11g device) in a suitable location (I have it in the living room) and configure the clients for access (a PC in level 2 master bedroom, and a laptop that is floating).

However, the results was less than satisfactory; I had large dead zones and weak spots all over the house. My PC (in level 2 bedroom) could only connect at 2-5Mbps stable and my laptop failed to connect at level 3. Even when I had clear line of sight between the client and the router (my laptop was just sitting on the opposite end of the room from the router), large file transfers to/fro my NAS (which has a direct connection to the router via cat 5e cable) via Windows Explorer would fail at times due to interference from neighouring APs.

In late January, I managed to get hold of a pair of homeplugs for just S$50 as part of the mioTV signup bundle (*) and that fixed my connectivity issue with the level 2 bedroom PC. I am now getting a stable connection at speeds of 80-90Mbps.

I did not stop there as I still needed to have connectivity on level 3. So I upgraded the router to one with MIMO technology, built-in amplifier and high-gain antenna. (*) That did solve the problem somewhat but stable speed at level 3 open areas was still hovering around 5.5Mbps and I still have dead zones in critical areas like my study.

Since the homeplugs are doing a good job, I decided to go hunting for a few more. I also figured that there will be people trying to cash in on the MioTV offer so I can probably get a few cheap. True enough, I found quite a few brand new sets in HWZ marketplace and I managed to grab one set for S$100 earlier this evening. Just for comparison, normal retail sets are going for S$180 at Challenger. At S$50 per connection, it is still alittle on the expensive side but TCO is still lower than the other options.

This pair of homeplugs are being deployed as follows: one is used to hook up the XMBC located in the lvl 3 den and the other will be connected to a 4 port switch in the lvl 3 study serving another PC and the printer.

In summary, my home network now comprises of a core backbone based on 4 homeplugs (real world throughput around 80Mbps), a satellite switch (the 4 port 100baseT switch) in the study and another switch (the 802.11g MIMO WiFi router com 4 port 100baseT switch) in the living room. And lastly, I still have the patchy WiFi coverage for mobility and low bandwidth scenarios.
What's next? Hmm.. maybe explore using directional antenna to extend my WiFi range to the pool so that I can get online while lounging out by the pool :)

Tuesday, June 3, 2008

Stop Vista from messing up your display(s)

Have you noticed that whenever your Vista machine (especially laptops) resume from standby, hibernate or just plain screensaver and you have Windows lock enabled, your screen will flash at least once or twice? And if you are like me, running on multi display, Vista will try to reconfigure both displays for some reason but usually ends up messing up both displays? In my case, my laptop display's resolution gets dropped to 800x600 (and in the process messing up all my windows layout) and sometimes I get blank screens on both displays (after which I had to hard reset my PC to recover and lose all my unsaved work in the process.. geez.. thanks Microsoft).

It took me awhile to track down the problem but I finally managed to pinpoint the root cause. There is a new component in Vista called "Microsoft Transient Multi-Monitor Manager" that manages the switching of displays. By default, it is configured to run everytime a user is logged on (apparently, unlocking your desktop is considered as such).

To solve the problem, follow the steps below to disable it.
  1. Open up Computer Management window. i.e right click on Computer in the Start menu and select Manage.
  2. Expand System Tools -> Task Scheduler -> Task Scheduler Library -> Microsoft -> Windows and click on MobilePC.
  3. In the top middle pane, right click on the item named TMM and select Disable.
  4. Reboot your PC.

Thursday, March 27, 2008

Getting ST536v6 to run in bridged mode

For the curious, I want the ST536v6 to run in bridged mode as I'm about to embark on a router upgrade project. So for a few days now, I've been trying various approaches found on the Internet to get the darn SpeedTouch to run in bridged mode with zero success.

First up was the auto-detect method. In this approach, just connect as usual (i.e. modem to WAN port of router, set PPPoE in router), hard reset the modem. If it don't work the first time, try a few more times. I swear, the last step is part of the instructions and no, its not a joke the Alcatel folks embed in their firmware. Anyways, no joy there.

Next up was the Residential CD method. Note: do not use this approach if you are using the modem for IPTV (i.e. MioTV) access as well. This is because the configuration wizard will remove the IPTV configurations when it writes the new bridged configuration for broadband to the modem! Learned this the hard way as I spent a couple of hours fiddling with the set-top box thinking it was a problem there and I couldn't check the modem configurations as the web admin console is no longer available once the modem is configured in bridged mode.

As luck would have it, just as I was about to give up, I found method 3 - manual configuration via telnet and it works! Yeah! I can finally revert back to using my DI-524 as the router. Here are the steps in making the magic happen. Telnet to your modem using the IP 192.168.1.254. Then just enter the commands in the sequence below.

Oh, if you make a mistake or if you screw up *touch wood!*, simply hard reset the modem by inserting a pin into the reset hole found at the back of the modem and hold it for 10 secs (or until you see the power led alternates between red and green).



Username : Administrator
Password : *********** (this is the serial number of the modem)
------------------------------------------------------------------------
______ SpeedTouch 5x6
___/_____/\
/ /\ 6.2.17.5
_____/__ / \
_/ /\_____/___ \ Copyright (c) 1999-2007, THOMSON
// / \ /\ \
_______//_______/ \ / _\/______
/ / \ \ / / / /\
__/ / \ \ / / / / _\__
/ / / \_______\/ / / / / /\
/_/______/___________________/ /________/ /___/ \
\ \ \ ___________ \ \ \ \ \ /
\_\ \ / /\ \ \ \ \___\/
\ \/ / \ \ \ \ /
\_____/ / \ \ \________\/
/__________/ \ \ /
\ _____ \ /_____\/
\ / /\ \ /___\/
/____/ \ \ /
\ \ /___\/
\____\/
------------------------------------------------------------------------
_{Administrator}=>ppp relay
{Administrator}[ppp relay]=>flush
{Administrator}[ppp relay]=>..
{Administrator}[ppp]=>flush
{Administrator}[ppp]=>:eth
{Administrator}[eth]=>flush
{Administrator}[eth]=>:atm
{Administrator}[atm]=>flush
Some ATM interfaces are still in use. Interfaces that are in use cannot be deleted.{Administrator}[atm]=>phonebook
{Administrator}[atm phonebook]=>flush
Some phonebook entries are still in use. Entries that are in use cannot be deleted.{Administrator}[atm phonebook]=>add
name = pvcInternet
addr = 0.100
:atm phonebook add name=pvcInternet addr=0*100
{Administrator}[atm phonebook]=>..
{Administrator}[atm]=>ifaddintf = atmInternet
:atm ifadd intf=atmInternet
{Administrator}[atm]=>ifconfig
intf = atmInternet
[dest] = pvcInternet
[qos] = default
[clp] = 0
[encaps] = llc
[retry] = 10
[fcs] = disabled
[ulp] = mac
:atm ifconfig intf=atmInternet dest=pvcInternet ulp=mac
{Administrator}[atm]=>ifattach
intf = atmInternet
:atm ifattach intf=atmInternet
{Administrator}[atm]=>..
{Administrator}=>eth bridge
{Administrator}[eth bridge]=>ifadd
[brname] =
intf = snbbridge
:eth bridge ifadd intf=snbbridge
{Administrator}[eth bridge]=>ifconfig
[brname] =
intf = snbbridge
[dest] = atmInternet
[portstate] = forwarding
[retry] = 10
[priotag] = 0
[vlan] = default
[prioconfig] = disabled
[ipprec] = disabled
[priority] = 0
[regenprio] = 01234567
[ingressfiltering] = disabled
[acceptvlanonly] = disabled
[mcastfilter] = disabled
[dynvlan] = disabled
[igmpsnooping] = enabled
:eth bridge ifconfig intf=snbbridge dest=atmInternet portstate=forwarding retry=10 priotag=disabled vlan=default prioconfig=disabled ipprec=disabled priority=0regenprio=01234567 ingressfiltering=disabled acceptvlanonly=disabled mcastfilter=disabled dynvlan=disabled igmpsnooping=enabled
{Administrator}[eth bridge]=>ifattach
[brname] =
intf = snbbridge
:eth bridge ifattach intf=snbbridge
{Administrator}[eth bridge]=>:
{Administrator}=>dhcp server config state=disabled
{Administrator}=>saveall
{Administrator}=>exit
Connection to host lost.

Sunday, March 23, 2008

Windows Vista and hidden SSID WLAN networks

If you have a Windows Vista PC, and your wireless network does not broadcast its SSID, and you find yourself tearing your hair out because you are having trouble getting on to your wireless network even though you have checked a zillion times that you have the correct client settings, try this:

Go into your wireless router's settings and check "Broadcast SSID" (or uncheck "Do not broadcast SSID") before trying to connect again. Once you have established connection, you can go back into your wireless router's settings to disable the SSID broadcast setting. (which btw is not necessary if your reason for disabling SSID broadcast is security. Look here for a detailed discussion on this topic.)

So far, I had the same experience with three different Vista PCs and two different wireless networks and each time, enabling the SSID broadcast for the initial connection between the Vista PC and the network solved the problem.

Thursday, December 6, 2007

Seamless sign on to internal web applications using your Windows credentials

I was recently tasked to architect and lead the Single Sign On (SSO) implementation within the Pan Asia region. This is part of the global identity management initiative whose vision is enable any employee in any part of the world to access any authorized internal application, be it web or desktop, using a single username and password.

Given that:
  1. the scope is for internal systems only,
  2. all workstations are part of an Active Directory domain,
  3. Windows authentication (aka NTLM/Kerberos) is the standard authentication protocol for non-web related access (shared folders, printers, Microsoft Exchange, etc) in our environment,
  4. Internet Explorer is the standard browser application used in our environment.
Its a no-brainer that the cheapest and quickest way to achieve SSO is by enabling Windows authentication on the web application end.

Besides cost savings, the other major benefit to this approach is that users only have to sign on to their workstations once (i.e. the normal Windows login process) and enjoy seamless access to any (internal) web applications just like how you access Microsoft Outlook or shared folders today.

Getting this up and running in ASP/IIS based web applications is a piece of cake. See recipe. (No pun intended.) The key steps are:
  1. Disable Anonymous Access and enable "Integrated Windows authentication" in IIS for the ASP/ASPX application in question.
  2. Do the same in the web config file if this is an ASP.NET application.
  3. In your code, grab the id of the user using the code Request.ServerVariables["LOGON_USER"].
On the Java front, there are two choices mainly:
  1. via a servlet filter like JCIFS NTLM HTTP Authentication module, or
  2. via Andy Armstrong's JAAS login module

One gotcha to take note of. The above works when your application, hosted in the internal network is accessed from the web browser:

  1. via an internal IP.
  2. via the hostname of the IIS server.
  3. via a fully qualified domain name (FQDN) that is a sub-domain under your Windows domain. i.e. your Windows domain is acme.com and your application domain name is abc.acme.com.
If, however, your application is accessed via a FQDN other than the above, you will find that user is prompted for his credentials in a popup dialog much like what you get in Basic Authentication. Details on this issue (and workarounds) can be found in this KB article (ID 303650).

In summary, its due to Internet Explorer mistakenly identified your site as an Internet site and the default browser settings prevents it from sending your Windows credentials for security reasons. To overcome this, you have to add the FQDN to the "Trusted sites" or "Local Intranet" lists.

To make life easier for your users, and since they are all on the domain, you can get your system administrators to push this configuration change to their PCs transparently via group policies or logon scripts.