http://hi.baidu.com/zhangbin101004/item/e459f4d1f818dfbd33db903b

今天囧了啊,在ubuntu挂载的文件夹里面解压数据库,结果linux嫌太大挂掉了直接mount error(12): Cannot allocate memory折腾了好久,终于发现解决办法:

方法一:

------------------------------------------------------------------------------------------------------------------------------------------

http://blog.csdn.net/strategycn/article/details/7917082

当通过mount.cifs命令对windows下的文件进行映射时,若文件太大,便会产生这种错误,解决方法是:

修改注册表 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize项的值大于等于15,若IRPStackSize项不存在,就新建一个DWORD值,点击弹出窗口的的进制为十进制,值写个18就ok了,还要重启一下。

-------------------------------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------detail-----------------------------------------------------------------------------------

http://linux.derkeiler.com/Newsgroups/comp.os.linux.networking/2006-10/msg00629.html

Check the Event Log on the Windows machine(

  1. 单击“开始”,然后单击“控制面板”。单击“性能和维护”,再单击“管理工具”,然后双击“计算机管理”。或者,打开包含事件查看器管理单元的 MMC。
  2. 在控制台树中,单击“事件查看器”。 

    应用程序日志、安全日志和系统日志显示在“事件查看器”窗口中。

) that fails to allow it's share 
to be mounted under System. Look for a red X, and the word Error. The 
Source is Srv. The error will be:

The server's configuration parameter "irpstacksize" is too small for the 
server to use a local device. Please increase the value of this 
parameter.

If you have this error on the Windows machine that fails to have it's 
share mounted, then do the following...

This key in the system registry must be modifed or created:(这个运行regedit)

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer
\Parameters\IRPStackSize

If the key is there, increase it a bit to say 15 or 18. If the key does 
not exist, as in my case, create a new DWORD Valute. Name it 
IRPStackSize. Double click on it to edit the value, put a check on the 
Decimal radio button for the Base so that you can see the parameter value 
as a decimal value and not a hexidecimal value. Give the new key a value 
of 15 and reboot. If that is not enough, raise it a litte to let's say 18 
and then reboot again. The problem is solved. Go mount your samba shares.

方法二

------------------------------------------------------------------------------------------------------------------------------------------

http://cplusplus2012.blog.163.com/blog/static/206676268201322054621392/

转载自: http://blog.chinaunix.net/uid-9185047-id-2973258.html

If you mount a Windows 7 share using Samba/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect large files. You can read more details at Large Files are locking up Windows 7 32 bit and 64 bit, but the solution is to make two registry edits and then restart a service:

Set “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″.
Restart the “server” service.

Once you have done that you should be able to mount the share using a command like “sudo mount -a” or just reboot the Linux machine.

这个问题太纠结了,有时挂载成功了,解压或者编译什么的,有时遇到Cannot allocate memory,就看不到你mount的目录,然后重启ubuntu还是没有,重新手动挂载就报这个错。 有时又没有,说不准这个问题的出现原因。 看来这个才明白。

------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------details-----------------------------------------------------------------------------------------

还有其他办法没有试过:祝大家好运!

http://jlcoady.net/windows/how-to-resolve-mount-error12-cannot-allocate-memory-windows-share

If you mount a Windows 7 share using Samba/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect large files. You can read more details at Large Files are locking up Windows 7 32 bit and 64 bit, but the solution is to make two registry edits and then restart a service:

  1. Set “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
  2. Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″.
  3. Restart the “server” service.

Once you have done that you should be able to mount the share using a command like “sudo mount -a” or just reboot the Linux machine.

mount error(12): Cannot allocate memory解决办法相关推荐

  1. mount error 12 = Cannot allocate memory

    当通过mount.cifs命令对windows下的文件进行映射时,若文件太大,便会产生这种错误,解决方法是: 修改注册表 HKEY_LOCAL_MACHINE\System\CurrentContro ...

  2. mount cifs出现cannot allocate memory解决方法

    今天囧了啊,在ubuntu挂载的文件夹里面解压数据库,结果linux嫌太大挂掉了直接mount error(12): Cannot allocate memory折腾了好久,终于发现解决办法: 方法一 ...

  3. 解决Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory

    最近公司一台线上服务器的hbase的regionserver挂掉之后起不起来报错OOM. 这台机器同时装有cassandra,于是停掉cassandra释放内存,重启regionserver失败,同时 ...

  4. ora 27102 linux,ORA-27102: out of memory Linux-x86_64 Error: 12: Cannot allocate memory

    本帖最后由 cyndi5566 于 2016-3-10 11:04 编辑 今天凌晨2点执行rman报错了,而且开发部的同事告诉我网站也打不开了,请大家帮忙看看..谢谢.. (补充:现在网站可以正常打开 ...

  5. oracle memory_error,ORA-27102: out of memory Linux-x86_64 Error: 12: Cannot allocate memory

    本帖最后由 cyndi5566 于 2016-3-10 11:04 编辑 今天凌晨2点执行rman报错了,而且开发部的同事告诉我网站也打不开了,请大家帮忙看看..谢谢.. (补充:现在网站可以正常打开 ...

  6. CAS (10) —— JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法...

    CAS (10) -- JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法 jboss版本: jb ...

  7. DedeCMS Error:Tag disabled:php的解决办法

    DedeCMS Error:Tag disabled:"php"的解决办法 2, posted on 2014-02-12 12:15 秦瑞It行程实录 阅读(...) 评论(.. ...

  8. mysql 1045错误ODBC_MySQL ERROR 1045 (28000) 错误的解决办法

    错误现象: ERROR 1045 (28000): Access denied for user'ODBC'@'localhost'(using password: NO) ERROR 1045 (2 ...

  9. 未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序解决办法

    一.未在本地计算机上注册"microsoft.ACE.oledb.4.0"提供程序 http://download.microsoft.com/download/7/0/3/703 ...

  10. 【服务器管理】mount.nfs: Stale file handle的解决办法

    [服务器管理]mount.nfs: Stale file handle的解决办法 一.服务器端出bug的情况 一.服务器端正常.客户端出bug的情况 鉴于本人需要开始服务器管理生涯,故此整理一系列关于 ...

最新文章

  1. CentOS 编译 openjdk
  2. Java单元测试-快速上手Junit
  3. 问题集锦(54-55)
  4. java多线程操作同一资源
  5. shiro的登录 subject.login(token)中执行逻辑和流程
  6. Django-你想知道的都在这里
  7. Tair持久存储系列技术解读
  8. Checksum 校验和
  9. mysql数据库group by_MySQL数据库对GROUP BY子句的功能扩展(1)
  10. 情感分析[深度学习/机器学习]专业英语词汇分享
  11. Qt编写自定义控件属性设计器
  12. 用代理IP进行简单的爬虫——爬高匿代理网站
  13. JDK下载与安装教程(超详细)
  14. LibCef中的一些坑
  15. matlab柱状图设置条纹,matlab代码画条纹柱状图
  16. Kafka | Kafka中如何实现死信队列重试队列
  17. Windows10系统输入法热键设置
  18. iphone粘贴关联_如何将电话号码粘贴到iPhone的电话应用程序中
  19. 【转】Linux diff 命令详解
  20. 计算机配件价格报告,2021年电脑配件行业趋势_2021年电脑配件行业趋势报告_中国报告大厅...

热门文章

  1. ASP.NET Web API 2框架揭秘
  2. 深度探索C++对象模型
  3. 在一堆人还在犹豫《SEO实战密码》是否值得购买的时候,在下已经收藏了1/10的签名版
  4. AlbertTransformerEncoder
  5. 78 ----二次曲面方程的化简、移轴变换、转轴变换、伸缩变换
  6. Scala常用List列表操作方法
  7. 递推关系中的数列通项
  8. python模块:时间处理模块
  9. Android 换行符号(\n)放到Android当中的TextView显示双斜杠(\\n)
  10. L3-001 凑零钱 (30 分)—团体程序设计天梯赛