Memory ballooning creating sites

I am creating 100 sites using PowerShell something like this:
Start-SPAssigment -Global$web = New-SPWeb $url –Name $Name –UseParentTopNav -description $description -ea stop
$web.ApplyWebTemplate($Id["SiteTemplate_1"])Stop-SPAssignment - Global
I am seeing memory ballooning. I am running this on a test system at the moment but I can't actually create 100 sites without getting system out of memory errors. The powershell process itself is using 6 GB by this point. I tried using advanced assignment
like this:
$spO = Start-SPAssigment
$web = $spO | New-SPWeb $url –Name $Name –UseParentTopNav -description $description -ea stop
$web.ApplyWebTemplate($Id["SiteTemplate_1"])
Stop-SPAssignment $spO
It made little to no difference. If I don't use SPAssignment and dispose of the spWeb object explicitly I don't see the problem.  So my questions are does SPAssignment actually work as intended? Am I using it wrong? My samples are simplified from what
I am actually doing and to be honest wrapping code blocks in SPAssignment -global is easy but pointless if it doesn't work correctly...
Thanks
Darrell

Just to be clear this is PowerShell I am talking about...
This technet article: http://technet.microsoft.com/en-us/library/ff607664(v=office.15).aspx disagrees with you.
Quoted here:
The Start-SPAssignment cmdlet properly disposes of objects used with variable assignments.
Large amounts of memory are often required when SPWeb, SPSite, or SPSiteAdminsitration objects are used. So the use of these objects, or lists of these objects, in Windows PowerShell scripts
requires proper memory management. By default, all Get commands dispose of these objects immediately after the pipeline finishes, but by using SPAssignment, you can assign the list of objects to a variable and
dispose of the objects after they are no longer needed. You can also ensure that the objects remain as long as you need them, even throughout multiple iterations of commands.
Cheers
Darrell

Similar Messages

  • Error occured while creating site collection for the first time in SP2013

    While creating a new site collection in SharePoint 2013, I need to do atleast 4 times " Go back to Site" begore it appears properly. Could you please let me know why this error is occuering while we create site collection for the first time.
    Is it aknown issue or due to RAM contraints.I am using 16 GB of RAM in Web tier.

    You can get by with 16 GB of RAM so I am guessing that is not the cause.  Although, you could verify your memory utilization during the process.  As long as you don't exceed 95% you should be fine.  Next time, I would instead look up the
    error in the ULS logs using the correlation id and see if you can get more details of what is causing the error.
    Corey Roth - SharePoint Server MVP blog:
    www.dotnetmafia.com twitter: @coreyroth |
    SP2 Apps

  • Urgent Deadline to Fix PC Mess Displaying iWeb Created Site -- Please Help!

    IWeb 08 and web-design-savvy Mac users, I really need your help... and I'm on a tight deadline.
    I've designed the website promoting our group's big event by using iWeb 08; I was very troubled when I discovered tonight that there are major display problems in Microsoft Internet Explorer 6 on Windows PCs. This website is essential to promoting the event and I can't afford to lose traffic because of display issues.
    Here's the site.
    www.spj.org/pittsburgh
    Can anyone walk me through the best fixes for the following problems?
    On a PC in Internet Explorer:
    1) The home page display chokes up during scrolling; there's a sort of "stuttering" effect in rendering of simple images that slows down the PC and gums things up.
    2) The layout of the center-justified text is trashed by Explorer's insertion of large blocks of blank spaces and a line return in an area where I change the color of the text for emphasis.
    On my web pages that display the iWeb-generated navigation links:
    3) The label for the final navigation link drops down to a second row, creating a ragged, poorly formatted look.
    4) If you click on the navigation link for the current page, it takes you to the home page instead of keeping you on the current page.
    None of these problems happen in Safari for Windows.
    In Firefox for Windows, I believe that only problem 3 happens.
    Explorer 7 for Windows appears to fix only problem 2.
    -Will an "optimizer" program fix any or all of these problems?
    -Can I open the iWeb-created html files in Netscape Composer, SeaMonkey, TextEdit, or any other application, change the html code to fix any of this, and save the repaired result?
    -Is there any change in the formating within iWeb that I should try that will put things right on a PC?
    Thanks for any help you can offer. I have to fix this somehow this weekend.

    Cédric,
    Thank you. I will definitely build my own navigation menu, as you described to solve problems 3 and 4.
    I'm still struggling with the decision of how to deal with issues 1 and 2 On a PC in Internet Explorer. (See below.)
    I did already update to iWeb 2.0.3 before I created the site.
    1) The home page display chokes up during scrolling; there's a sort of "stuttering" effect in rendering of simple images that slows down the PC and gums things up.
    2) The layout of the center-justified text is trashed by Explorer's insertion of large blocks of blank spaces and a line return in an area where I change the color of the text for emphasis.
    Here are options I'm considering.
    One is to take screenshots of the site's current iWeb-generated graphics, turn them into jpegs, and reinsert them into the page as jpegs. My thinking is that it would eliminate any Explorer problems with rendering png images and effects.
    Another option is to rebuild the entire site in another program, trying to imitate the look of my current iWeb-created site. The problem is, I don't know if I have to skills to properly create my PayPal online registration section, which is essential. If I do try to redo the entire site, I haven't decided to use Netscape Composer (my old method), SeaMonkey (its successor), or some other application with which I have no experience. If I do recreate the entire site, I'm going to have to be careful to exactly duplicate the individual page names, so that I don't break the links for anyone who has linked to the current pages.

  • CRASH "Not enough memory to create clipboard. This should never happen."

    CRASH Error message: "Not enough memory to create clipboard. This should never happen."
    What the F???
    SvK

    i was talking to someone at frankfurt about this (possibly logic had crashed on something we were looking at - i don't remember) and they said error messages like that were for the developers. the fact you saw the error message yourself was in itself a bug.
    i don't know for sure, but i think you are seeing some kind of bug relating to memory management. try deleting history and reorganizing memory if you get this error a lot.

  • Created site in iweb 08 and posted to netfirms... the pages are all loaded up but there is no nav bar, it comes up on each page as a small black dot. How do I get the nav bar to load up and show?

    I created site in iweb 08 and posted to netfirms... the pages are all loaded up but there is no nav bar, where the nav bar should be is only a small black dot on each page. How do I get the nav bar to load up and show? It was a disaster loading up my site as it changed the case of the letters and at first no pages were seen, so I had to go through and change the letters that were supposed to be cap, back to cap in every file. I don't know if this has something to do with it or not. The tech support doesn't have an answer. Please let me know if you have any ideas and solutions. Thanks bunches!

    Here are links to the simple 7 pages....
    http://www.rednosedesign.net/home.html
    http://www.rednosedesign.net/about_us.html
    http://www.rednosedesign.net/logos.html
    http://www.rednosedesign.net/flyers_&_ads.html
    http://www.rednosedesign.net/notecards.html
    http://www.rednosedesign.net/business_cards.html
    http://www.rednosedesign.net/contact_us.html

  • Unable to Create site collections with any template

    Hi All,
    We are using SharePoint 2013 , after long time am tried for create new BI center in one of our web application , but its taking more then 10 mints , the page is loading more then 10 mints , after that i just refresh the page and i got a error "Sorry
    this site was created already with this name".
    so , i try to enter the new site URL am getting error the page is not valid .
    i thought this was on issue with requirements on BI Center , so i checked the web application associated service application , but i have Visio Graphics service application , Excel Service Application and Performance point service application running for
    this web application .
    after some time i tried to create team site template site collection , i am facing the same issue again , i really dont know what is the issue with my CA , can any one help me to solve this issue ASAP.
    i tried to create site collection from PowerShell also , but am facing the same issue , even i got the same error while try to create sub site. i tried with refreshing IIS also , but its not worked.
    Am waiting for your valuable response .
    Thanks,
    Mani L
    Mani L

    Hello Mani L,
    Please make a host entry on you WFE server for the URL of the site you are trying to create. Then try browsing the site from same server.
    - First check if the binding is correctly configure in Alternate Access mapping on Central administration
    - Same binding should be provided under IIS for the web application
    If this doesn't resolve the issue then, for testing create a host entry for central admin hostheader url.
    To do this follow below mentioned steps:
    Go to Start -> Run -> Type drivers
    open HOSTS file in a notepad
    type IP address of the APP server and beside that with a tab key type URL of the site
    Save the file and try to browse the site in a fresh new browser after closing all the browser.
    Where SharePoint.com is my Host Header URL and IP address is the server IP where the site is hosted (APP Server generally)
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Creating site collection in claims enabled webapplication with each in seperate content database

    Hi All,
    We have a  requirement where end user have a option to create site collection with out contacting farm admin, and each site collection would be created in separate content db.
    we used WebApplication.sites.add() which is working only for classic authentication web applications.
    how do we create site collections in claims enable web application with each site in separate content db?
    Any thoughts on this would be helpful.
    ragava_28

    Hi,
    We can use Self Service Site Creation to achieve your requirement.
    The code snippet below for your reference:
    using (var site = rootSite.SelfServiceCreateSite(siteCollectionUrl, title, description, locale, null, adminLogin, adminName, adminEmail, secondaryAdminLogin, secondaryAdminName, secondaryAdminEmail))
    var web = site.RootWeb;
    web.AllowUnsafeUpdates = true;
    //Activate web template feature
    site.Features.Add(webTemplateFeatureGuid);
    //Apply web Template
    using (var s = new SPSite(site.ID))
    var webTemplates = s.RootWeb.GetAvailableWebTemplates(locale);
    var webTemplateId = "{" + webTemplateFeatureGuid.ToString() + "}#" + webTemplateName;
    var webTemplate = webTemplates[webTemplateId];
    if (webTemplate != null)
    web.ApplyWebTemplate(webTemplate);
    // need to reload web. Features in webtemplate have modified it!
    web = site.OpenWeb(web.ServerRelativeUrl);
    // Continue doing stuff to new site
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/26303/unable-to-create-site-collection-programmatically
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to create Site Directory in Sharepoint 2013

    Hi All
    I have a requirement to create Site Directory in SP-2013 , It should list all the sites available in Farm. Can you please Guide me how to do this. It will be a great help
    Thanks in Adavnce
    Manoj Gangwar
    Manoj Gangwar | Sharepoint 2010 MCPD | Sharepoint 2010 MCTS

    Hi Manoj,
    You can check if the following article could work for your requirement with using the PowerShell script code to loop and list all sites' URLs,
    Thanks
    Daniel Yang
    TechNet Community Support

  • Not Enough Memory To Create U_memTrackedObject, after effects error

    Im doing basic keying of 10 minute hdv 1080i footage, with keylight.  The background image is a 1080x1920 png still image.  My macbook handles this same project just fine everyweek.  Now my new mac pro can't do it.  20% percent into the export I receive the following errors.
    "Not Enough Memory To Create U_memTrackedObject, (3k requested, 0 available)" then "not enough memory to create sound buffer," and sometimes "unable to allocate space for a 712x 402 image buffer."  And after the errors appear, they will not go away unless i force quit the program.
    I've adjusted the secret setting and some other settings to trouble shoot but just can't figure it out.
    Please Help!   Thanks guys!
    Brand New Mac Pro osx 10.6.7
    Processor 2 x 2.66 ghz 6-core Intel Xeon
    Memory 6gb 1333 mhz ddr3
    After Effects cs4 9.0.0.346
    Multiprocessing is off
    total ae memory usage 1.796
    Ram to leave for other apps 2gb
    secret setting:  disable layer cache, purge every 5 frames

    Thanks!  the update worked and my render completed in record time!   I'll do some more tests to verify.  I dont know why the "adobe updater" didn't fetch this update tho on either of my machines.  Or maybe i just clicked cancel everytime

  • Exchange doesn't create site mailbox

    Hi everyone, I have Exchange server 2013 sp1 (15.0.847.31) and Sharepoint server 2013 (15.0.4535.1000). I configured SP and exchange for site mailbox (http://technet.microsoft.com/en-us/library/jj552524%28v=office.15%29.aspx), but sharepoint/exchange was
    not creating site mailbox. If I create site mailbox manually (new-sitemailbox cmdlet), everything working fine. If I try create site mailbox from Sharepoint site, I was redirected to exchange OWA (personal mailbox) and  site mailbox was not created.
    any ideas why site mailbox is not creating automatically?

    Hi Konstantin
    I think your problem is related to Exchange delegation.  As you are creating site mailbox, so to become a “mailbox administrator”, you need to do the following: -
    You need to provide apposite rights for the Mailbox Administrator user account on the OU. The user accounts exist in here so that Mailbox Administrator user account can read/write all user attributes.
    Add the Mailbox Administrator user account to the local overseer group on the mailbox server cluster.
    I hope that you find this information useful.
    ---- Ashish@V

  • How to enable Safari Reader on a muse created site?

    I am having a problem getting the safari reader button to work on my muse created site. This is on the desktop and iOS Safari web browser. Some pages do pull content on the Chrome iReader extension but it appears to be random and not all of the content. I have consulted this link: http://mathiasbynens.be/notes/safari-reader
    Wondering what I can do here as the above referenced article does not provide clear documentation on HTML implementation here.
    Thanks,

    Post Author: Ranjit
    CA Forum: Deployment
    Hi Yogesh
    Are you (=Installer) Admin on the box? I can install my CR on my machine only when I'm an Admin on the box:
    Go to My computer => Right Click => Manage =>Local Users & groups => groups => Administrator => and add your login ID in this group. - Sorry if it was unnecessary details...
    Ranjit

  • Unable to create Sites/Subscriptions in SMOEAC

    Hi,
    I am trying to create sites in SMOEAC. Unfortunately I cannot create anything else than Organizations. The upper left box where I choose Object Type is in fact blank. No Visual Display at all.
    My authorizations are according to the notes :
    SAP_CRM_MWAC_ADMINISTRATOR
    SAP_CRM_MWAC_CUSTOMIZER
    SAP_CRM_MWAC_DISPLAY_ALL
    I have used SAP Note 485656; but to no avail.
    Any other suggestions??
    Thanks,
    Mylène

    Hi Mylène,
    Which CRM are you on? Looks like an authorization issue. Why don’t you first try with better authorizations, for e.g. SAP_ALL and SAP_NEW? If you should be able to create with these authorizations, then troubleshoot further on authorizations.
    Reward if helps
    Regards,
    Paul Kondaveeti

  • How to create site using DWS with "use unique permissions" set to false?

    Is there web service call that can set newly created site (created using dws web service) to NOT use unique permissions?
    Or how to make site to inherit parents permissions? (using web services)
    Thank you
    Komgal

    I actually have a different definition for this web service than the one specified. I possibly have an older version of SharePoint Foundation 2010.
    The one I get from SitesSoapClient is as such:
    string SitesSoapClient.CreateWeb(string url, string title, string description, string templateName, uint language, uint locale, uint collationLocale, bool uniquePermissions, bool anonymous, bool presence)
    OK, different declaration, but no problem: just put in some fields and we're good, right? As it turns out, that's not the case. I get an empty exception being thrown (actually the FaultException says "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException'
    was thrown." which tells me almost nothing about the problem) every time I call this function. I've altered all the parameters to check if there's maybe something wrong with what I'm passing, but I can't figure out what the problem may be.
    For the record, here's my code snippet:
    SitesSoapClient client = new SitesSoapClient(binding, endpoint);
    client.CreateWeb("MyWebBD", "My New Website", "My description", "STS#0", 1033, 1033, 1033, false, false, false);
    ... I've tried changing "MyWebBD" to different things, such as to the absolute URL "HTTP://blahblah/MyWebBD" . I've also tried changing the title and the boolean values, none of which seems to make any difference.
    Anyway, I know this is a thread from 3 months ago, but I'm wondering if there's a solution to this or am I SOL for now?
    P.S. I noticed that there are at least TWO web service definitions on MSDN that are slightly different. The one I went to initially was
    http://msdn.microsoft.com/en-us/library/sites.sites_members(v=office.12).aspx and eventually when I was looking for how to create a SharePoint site, I found
    http://msdn.microsoft.com/en-us/library/websvcsites.sites_members.aspx . The latter page at least shows a definition for "CreateWeb," where the former does not. Not sure the relevance of this information, but it seems there's something de-synchronized
    between the two. Possibly an older version of the page or something?? 

  • SAP IS Retail Create Site Group

    Hai All
    How to create site goup,

    Hi,
    To create Site Group : Logistics --> Retailing -->Site Master --> Grouping --> Promotion --> Create (WB60).
    The small window popped up with three option : Customer, Site Grouping, Site Hierarchy. Select Site Grouping option and enter required data as per your requirement.
    Assign Sites to Site Group: Logistics --> Retailing > Master Data> Site Data--> Grouping > Promotion> Maintaining Assignment -->Sites in a class (WB66).
    Select Site Grouping as option. You will observe screen with button "Only New assignments". When you click on this button, select plant radio button and continue. Now, you can add respective site into site group.
    Hope it will help.
    Regards,

  • Retail:how do we create site coding for site catogeries (in IMG)

    Hi experts,
                      I just want to know how and where do we "create site coding".I know there are standard" site categories" are there in "site profile" those are "Distribution center (DC)" and "siore".I want the path and procedure where we create site coding for site categories.Expecting clear answer and complete procedure.
    Thanks in advance
    Regards
    Sandhya

    Hi Sandhya,
    The Site Number Ranges are external and no Internal number ranges have been provided.
    However the number ranges for the DC and store that are created for a site can be controlled using the number range assigned to the Vendor and the Customer Account groups.
    The Vendor and the Customer account groups are assigned to the Site Profile. These Site profile are used when the site is created in WB01. If the number range of the vendor and the customer is made as external it will use the same number range as the site that is being created. Its ideal if the customer and the vendor has the same code as the site itself.
    Hope this Helps.
    Regards
    Prabhu

Maybe you are looking for

  • Problem In JDBC Driver Package Class12.zip

    After executing the code below: Connection con = ConnectionPool.getConnection(); while(true){ Statement sta = con.createStatement(); sta.close(); Exception is raised after the loop is executed 300times with message: ORA-01000: ³¬³ö´ò¿ªÓαêµÄ×î´óÊý th

  • Mail Can be sent but is never delivered

    Hi, I was following the steps below to make it so a message can be received without a subject. After completing those steps I am running into an issue with my messages not getting to the recipient. If I send a message it acts as if it's been sent but

  • Folder Structure for portlet & configure in WL 8.1

    Hi , <b>Any one help me how to configure the portlet in WebLogic 8.1 and the Folder structure of the Portlet application. What jar file we need to provide for portlet where we download.I am not installed portlet server.</b> thx & rgds, K.Samraj

  • Event Handling between JPanels

    Hi everyone, I'm trying a three-fold assignment on java, which relates to graphs and finding strongly connected components. In the first part, the user can create his own graph and the program should find all SCC and display them. In the second part,

  • How can install form 6i & which database we use oracle 7 or 8