|
[
Permlink
| « Hide
]
Jaq Marit added a comment - 25/Nov/04 07:05 AM
I've encountered same messages in my logs specifically with Windows. I haven't notice this in my Linux box. Could this be a VM issue?
Interesting observation. Unfortunately it is not possible for me to test this since all my Linux boxes has all single-no-hyper-threading CPUs. I might be able to perform tests on a Linux/hyper-threaded box in a few days from now.
I might add that we are using JDK 1.4.2_06 for the moment. Note that if you put some load on the server, then Jetspeed 1.6-dev will start and run. It is therefore vital that the server has no load what so ever when trying to reproduce this error. And I must note that Jetspeed 1.5 is very stable on the same system. Not a single glitch! Path that uses new SynvhronizedMapping object to serialize all access to castor Mapping.loadMapping() methods.
Bjorn Vidar Remme made changes - 30/Nov/04 01:48 PM
I finally had time to investigate this problem in detail and I have created a patch that solved this issue on all our servers (attachment
To fix this I added more debug code to the CastorPSMLManagerService and the LateInitCastorRegistryService. Then I compared the logs when Jetspeed 1.6 worked and when it crashed (as I have mentioned before, it works if I generate some load on the server). Comparing the logs I found out that the services runs in two different threads (psml in main and lateInit in Deamonthread:feeddeamon). I then discovered that the crashes occurs when both threads loads a Castor mapping at the same time. The Mapping.loadMapping() method appears not to be thread safe... Synchronizing all access to the Mapping.loadMapping() methods seems to be the solution (see new SynchronizedMapping class). The Unmarshaller.unmarshal() methods appears to be thread safe, can anyone comment on this please? I encountered the same problems on dual-processing box with hyperthreading (Win2K). After applying the patch, things look much better.
Mark Orciuch made changes - 18/Jan/05 08:36 AM
Jeremy Ford made changes - 26/May/05 12:28 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||