2009-06-04 10 views

उत्तर

3

मुझे लगता है कि आप पाएंगे कि अधिकतर लोग विंडोज़ पर विश्वसनीयता के लिए रेडहाट पर बहस करेंगे। ग्लासफ़िश स्वयं को भी उसी पर चलाना चाहिए।

आप शायद Server Fault

16

पर इस पूछना चाहिए आप ./appserv-commons/src/java/com/sun/enterprise/util/io/FileUtils.java glassfish स्रोत चेक करते हैं, विशेष रूप से, आप करेंगे विंडोज़ पर फ़ाइलों और निर्देशिकाओं को हटाने/पुनर्नामित करने के लिए ग्लासफ़िश के माध्यम से सभी गर्भपात देखें।

यह एक विंडोज़ समस्या है, खुली फाइलों को हटाने और नाम बदलने पर इसके प्रतिबंधों के साथ।

फ़ाइल स्ट्रीम को बंद करने की आशा में जेवीएम से कई बार एक जीसी का अनुरोध करने सहित, सभी प्रकार की चालें हैं, "छद्म" नामकरण, नींद-प्रयास लूप।

कुछ उदाहरण:

/** 
*Attempts to delete files that could not be deleted earlier and were not overwritten. 
*<p> 
*On Windows, the method requests garbage collection which may unlock locked 
*files. (The JarFile finalizer closes the file.) 

/* 
    *On Windows, as long as not all leftover files have been cleaned and we have not 
    *run the max. number of retries, try again to trigger gc and delete 
    *each remaining leftover file. 
    */ 

/** 
* Windows has BIG issues renaming a directory that is open somnewhere -- e.g. if 
* a DOS box is opened anywhere in that directory. 
* This method will try to do a "virtual renaming" if there are problems 
* I.e. it attempts to do a simple rename, if that fails it will copy everything under 
* the original directory to the renamed directory. Then it will delete everything 
* under the original directory that the OS will allow it to. 

व्यवहार में यह कभी कभी, विंडोज पर तैनाती या redeployments borked के रूप में कुछ फ़ाइलों को हटाया नहीं जा सकता या चले गए और अंत में पीछे छोड़ दिया जा रहा करने के लिए अनुवाद। 50 या उससे अधिक ग्लासफ़िश उदाहरणों में से मुझे लगता है कि मुझे सोलारिस 10 पर कोई समस्या नहीं है और हमेशा विंडोज़ से संबंधित समस्याएं होती हैं।

संक्षेप में, किसी भी * NIX अकेले इस कारण से बेहतर होगा, अन्य प्लेटफ़ॉर्म व्यवस्थापक विचार अलग-अलग होंगे।

संबंधित मुद्दे