Composer out of memory - sylius

After installing sylius (standart)
composer create-project -s alpha sylius/sylius-standard acme // its OK
composer update // ERROR
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 58720256 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 73
Ref Ask in GitHub (#6854)
I have increased memory_limit (php) to 1G, 3G, -1 and same results.
My sistem:
Windows x64
Processor Phenom x955 x4
RAM 4GB
Composer 1.2.2
PHP 7 (I tried with 5.6 too)
The ask: Which server would need minimally to implement sylius?
Or will this problem only happen with composer?

I had the same issue under Windows 10 x64.
I noticed that my php installation was PHP7 32 bit version (so max allowed memory usage was 4GB) and I had xdebug enabled.
Afert installing PHP7 64-bit with xdebug disabled and setting memory_limit to -1 everything works fine.
Probably composer is using more than 4GB memory under Windows when dowloading all required bundles for Sylius during installation or it was PHP 32bit + composer issue...

Related

Invalid maximum heap size

I have copied a jdk directory from another location. Since then, I get the following error message.
Your environment has been set.
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
PROPS=-Xms1024m -Xmx5096m -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djava.ext.dirs=..;.;..\lib;..\classes -Dfile.encoding=UTF-8
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK15~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
Invalid maximum heap size: -Xmx5096m
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.
Does this mean I will have to re-install the jdk, and not just copy any installation directory? I'm asking this and not trying it out myself because this exercise will have to be done in a client machine.
The current machine is a Windows 2008 server and has 12GB of RAM.
You are using 32 bit VM (Java HotSpot(TM) Client VM) which can be mapped to maximum 4G (Only 2 GB in reality) 2^32 address locations Maximum Java heap size of a 32-bit JVM on a 64-bit OS
Error message suggest you are using 5GB heap memory which is not supported on 32 bit architecture
Invalid maximum heap size: -Xmx5096m
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.
You can modify the -Xmx parameter to use anythinng <=2g should work here
I just encountered the problem and solved it by downloading the windows 64-bit JAVA.
Please check whether your windows version is 32-bit or 64-bit, and download the right version of JAVA.

jvm crash after adding more cpu and ram during runtime

A production tomcat stopped responding after 8 hours of adding more cpu and ram during runtime. There is no traceable log in catalina.out.
java process was still running in the background. There is no load on the system during that time period. No sign of Out of memory.
apache-tomcat-7.0.55
tomcat-native-1.1.31
java version "1.8.0_66"
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Could it be because of the cpu and ram upgrade? Thanks.
I saw a post about it for java 6. I am not sure it is related to my issue.
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6840239

problems installing a virtual machine

I am tryin to install kali linux 1.0.9 on virtualbox for some testing purposes. (I am new with virtual machines). So i downloaded the 64-bit version of the os. i have got two problems:-
for some reason virtualbox does not show me a debian 64 bit version option in the settings(however it does show 32-bit option).
virtualbox doesnt allow me to change the no. of processors(default value is 1). i have got 8 cpus.
please help. my specs - intel i7 2670 memory- 6GB HDD-700 GB graphics - radeon 7670 HD
I have got windows 7 ultimate 64-Bit installed on the host
You need to enable 'Virtualization' option in your BIOS settings. The name of the settings may be different in different BIOS/motherboard brands. But you can easily identify it, in the BIOS.
I also had the same problem. I am in windows 8.1 and for my case, the problem was due to conflicts with Hyper-V who was activated in my system. I solved the problem by disabling Hyper-V.
Open windows features and Uncheck Hyper-V, click/tap on OK

Installing mod_mono on Mac OSX 10.9 "Mavericks"

I'm trying to install mod_mono on mavericks, however, I'm getting an error. I have the most up-to-date mono version with Mavericks support. (v 3.2.3).
When I ./configure --prefix=/usr in mod_mono version 2.10 I get this error:
checking Apache version... configure: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0
But when i check my version of apache it says
Server version: Apache/2.2.24 (Unix)
Server built: Aug 24 2013 21:10:43
EDIT: Upgrading your mono version to the latest (3.2.4) appears to work the best. Ensure you have a clean download of mod_mono-2.10.
After installing Mavericks, you need to reinstall the XCode Command Line Tools. This will bring back the /usr/include/apache2 directory. You do this by updating your XCode and then run xcode-select --install.
I had the same error. I had mono running on my server. When I upgraded to Mavericks and Server 3 mono stopped working. During the upgrade process the "mod_mono.so" file was removed. This is what I did to research and resolve my issue which I believe encompasses yours. Hope it helps.
In the directory that you are running your "./config..." command, there is a "config.log". I looked at the config.log and found an error message stating that it could not find the file "ap_release.h" (I believe this is how the apache version is determined). I must have had this file at one time because I went through this installation process before. I went into my time machine and restored the directory (which was removed when I upgraded to Mavericks or Server 3) "/usr/include/". This folder included a directory called "apache2" which included the "ap_release.h" file and I assume it's dependencies.
All is well I am up and running.

JMeter not working after increasing the heap size beyond 1577 Mb

When I tried to increase the JVM heap size to to 2048 Mb, it throws an exception while initializing the JVM. I have tried it on both 32-bit & 64-bit OS but was able to get the solution. Also, please tell me if installing the 64-bit JVM or JRE will solve the problem or not.
Can someone also let me know, how to find which version of JRE I'm currently running?
The memory limit is here: Java maximum memory on Windows XP
The version is java -version